Permalink
Browse files

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)
  • Loading branch information...
1 parent 75c591d commit ea5d48ee8d9ccad07e0337216d639ef3192d60ad selliott committed Mar 9, 2004
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/datalib.php
View
@@ -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");
}

0 comments on commit ea5d48e

Please sign in to comment.