From 87e5a0cd9e2c5b8f90b52d588cfbfbdb61a6802f Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Tue, 12 Sep 2006 07:38:07 +0000 Subject: [PATCH] changed code to use get_role_users function --- admin/roles/assign.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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(); } -- 2.39.5