]> 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:45:01 +0000 (22:45 +0000)
committergustav_delius <gustav_delius>
Thu, 5 Oct 2006 22:45:01 +0000 (22:45 +0000)
admin/roles/assign.php

index b041324183b8aec9fa64f682e98eb8240163b2e6..9953feb50c82b78a46cf5264d45d8d35eb728353 100755 (executable)
     if ($roleid) {        /// prints a form to swap roles
 
     /// Get all existing participants in this context.
+        // Why is this not done with get_users???
 
         if (!$contextusers = get_role_users($roleid, $context, false, 'u.id, u.firstname, u.lastname, u.email')) {
             $contextusers = array();
         }
 
-        $select  = "username <> 'guest' AND deleted = 0 AND confirmed = 1";
+        $select  = "username <> 'guest' AND username <> 'changeme' AND deleted = 0 AND confirmed = 1";
     
         $usercount = count_records_select('user', $select) - count($contextusers);