Modified function get_users_listing to:

1. also return confirmed field from user table and
2. include users in dataset who have not confirmed
(Used to display unconfirmed users in admin/user.php)
This commit is contained in:
selliott
2004-03-09 21:12:54 +00:00
parent 75c591dbb9
commit ea5d48ee8d
+3 -2
View File
@@ -1404,10 +1404,11 @@ function get_users_listing($sort, $dir="ASC", $page=1, $recordsperpage=20, $sear
$search = " AND ($fullname $LIKE '%$search%' OR email $LIKE '%$search%') ";
}
return get_records_sql("SELECT id, username, email, firstname, lastname, city, country, lastaccess
/// warning: will return unconfirmed users
return get_records_sql("SELECT id, username, email, firstname, lastname, city, country, lastaccess, confirmed
FROM {$CFG->prefix}user
WHERE username <> 'guest'
AND deleted <> 1 and confirmed = 1 $search
AND deleted <> 1 $search
ORDER BY $sort $dir $limit");
}