]> git.mjollnir.org Git - moodle.git/commitdiff
Incomplete user record (the one where the username is still 'changeme') should not...
authorgustav_delius <gustav_delius>
Thu, 5 Oct 2006 22:21:09 +0000 (22:21 +0000)
committergustav_delius <gustav_delius>
Thu, 5 Oct 2006 22:21:09 +0000 (22:21 +0000)
lib/datalib.php

index 498a141cca125f68822297ca96420c421e844bf0..634e75b9eaa54c2727599759c508ae4d3d35811c 100644 (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);