From: toyomoyo Date: Tue, 12 Sep 2006 07:38:07 +0000 (+0000) Subject: changed code to use get_role_users function X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=87e5a0cd9e2c5b8f90b52d588cfbfbdb61a6802f;p=moodle.git changed code to use get_role_users function --- diff --git a/admin/roles/assign.php b/admin/roles/assign.php index 92983cbcbd..0b5098475a 100755 --- a/admin/roles/assign.php +++ b/admin/roles/assign.php @@ -123,9 +123,7 @@ $existinguserarray = array(); - $SQL = "select u.* from {$CFG->prefix}role_assignments r, {$CFG->prefix}user u where contextid = $context->id and roleid = $roleid and u.id = r.userid"; // join now so that we can just use fullname() later - - if (!$contextusers = get_records_sql($SQL)) { + if (!$contextusers = get_role_users($roleid, $context)) { $contextusers = array(); }