small fix in delete_spammers.php

This commit is contained in:
David Anderson 2017-08-25 13:54:06 -07:00
parent c796f3f7e0
commit 0629c84b9a
1 changed files with 3 additions and 0 deletions

View File

@ -263,6 +263,9 @@ function delete_users($no_hosts, $no_posts, $no_teams, $have_url) {
$n = 0;
while ($u = $result->fetch_object()) {
$user = BoincUser::lookup_id($u->id);
if (!$user) {
continue;
}
if ($have_url) {
if (!strlen($user->url)) continue;
}