diff --git a/html/inc/delete_account.inc b/html/inc/delete_account.inc index 74dbd111200..03c60d43761 100644 --- a/html/inc/delete_account.inc +++ b/html/inc/delete_account.inc @@ -197,6 +197,7 @@ function wipe_account($user) { BoincHostAppVersion::delete_for_user($user->id); BoincHost::delete_for_user($user->id); BoincConsent::delete_for_user($user->id); + BoincTeamAdmin::delete("userid=$user->id"); // final action delete_user($user); //from user_util.inc diff --git a/html/inc/forum_email.inc b/html/inc/forum_email.inc index 67fc7795fe8..22a469ca89c 100644 --- a/html/inc/forum_email.inc +++ b/html/inc/forum_email.inc @@ -52,6 +52,7 @@ function mail_report_list($forum, $subject, $body, $must_send=false) { $admins = BoincTeamAdmin::enum("teamid=$team->id"); foreach ($admins as $admin) { $u = BoincUser::lookup_id($admin->userid); + if (!$u) continue; $success &= send_email($u, $subject, $body); } break; diff --git a/html/inc/team.inc b/html/inc/team.inc index e70120e5206..7bb320606c6 100644 --- a/html/inc/team.inc +++ b/html/inc/team.inc @@ -365,6 +365,7 @@ function admin_list($teamid) { $admins = BoincTeamAdmin::enum("teamid=$teamid"); foreach ($admins as $admin) { $user = BoincUser::lookup_id($admin->userid); + if (!$user) continue; $u[] = $user; } return $u; diff --git a/html/user/team_admins.php b/html/user/team_admins.php index 57365dbe028..93fde5caa4a 100644 --- a/html/user/team_admins.php +++ b/html/user/team_admins.php @@ -26,6 +26,7 @@ function show_admin($user, $admin) { $admin_user = BoincUser::lookup_id($admin->userid); + if (!$admin_user) return; $tokens = url_tokens($user->authenticator); $date = date_str($admin->create_time); echo "