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:
+3
-2
@@ -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");
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user