Permalink
Browse files

Incomplete user record (the one where the username is still 'changeme…

…') should not be included in user listing. See bug 4570
  • Loading branch information...
1 parent 1db1336 commit 6bff0453f57c4b84e5a33a951ce9d27556b47756 gustav_delius committed Oct 5, 2006
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/datalib.php
View
@@ -208,7 +208,7 @@ function get_users($get=true, $search='', $confirmed=false, $exceptions='', $sor
$LIKE = sql_ilike();
$fullname = sql_fullname();
- $select = 'username <> \'guest\' AND deleted = 0';
+ $select = 'username <> \'guest\' AND username <> \'changeme\' AND deleted = 0';
if (!empty($search)){
$search = trim($search);
@@ -268,7 +268,7 @@ function get_users_listing($sort='lastaccess', $dir='ASC', $page=0, $recordsperp
$LIKE = sql_ilike();
$fullname = sql_fullname();
- $select = 'deleted <> 1';
+ $select = "deleted <> '1' AND username <> 'changeme'";
if (!empty($search)) {
$search = trim($search);

0 comments on commit 6bff045

Please sign in to comment.