From 487166dff15d616fa88f2c7b71353176240cfc59 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Wed, 14 Jan 2009 18:07:31 +0000 Subject: [PATCH] Fix wrong use of get_users_by_capability() - param mesh --- course/report/log/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/report/log/lib.php b/course/report/log/lib.php index c2b2f32591..d595f750d9 100644 --- a/course/report/log/lib.php +++ b/course/report/log/lib.php @@ -49,7 +49,7 @@ function print_mnet_log_selector_form($hostid, $course, $selecteduser=0, $select // If looking at a different host, we're interested in all our site users if ($hostid == $CFG->mnet_localhost_id && $course->id != SITEID) { - $courseusers = get_users_by_capability($context, 'moodle/course:view', '', 'lastname ASC, firstname ASC', '','u.id, u.firstname, u.lastname, u.idnumber',$selectedgroup,null, false); + $courseusers = get_users_by_capability($context, 'moodle/course:view', 'u.id, u.firstname, u.lastname, u.idnumber', 'lastname ASC, firstname ASC', '','', $selectedgroup,'', false); } else { // this may be a lot of users :-( $courseusers = $DB->get_records('user', array('deleted'=>0), 'lastaccess DESC', 'id, firstname, lastname, idnumber'); -- 2.39.5