Skip to content
Permalink
Browse files

Fix wrong use of get_users_by_capability() - param mesh

  • Loading branch information...
stronk7
stronk7 committed Jan 14, 2009
1 parent 3f57bd4 commit 487166dff15d616fa88f2c7b71353176240cfc59
Showing with 1 addition and 1 deletion.
  1. +1 −1 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');

0 comments on commit 487166d

Please sign in to comment.
You can’t perform that action at this time.