Incomplete user record (the one where the username is still 'changeme') should not be included in user listing. See bug 4570

This commit is contained in:
gustav_delius 2006-10-05 22:21:09 +00:00
parent 1db1336bd4
commit 6bff0453f5

View File

@ -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);