mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
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:
parent
1db1336bd4
commit
6bff0453f5
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user