MDL-12437, sorting by names adds teacher to gradebook list

This commit is contained in:
toyomoyo
2007-12-05 01:12:02 +00:00
parent ce9dd0470a
commit c635d2acc8
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -4343,7 +4343,7 @@ function get_role_users($roleid, $context, $parent=false, $fields='', $sort='u.l
if (is_array($roleid)) {
$roleselect = ' AND ra.roleid IN (' . implode(',',$roleid) .')';
} elseif (is_int($roleid)) {
} elseif (!empty($roleid)) { // should not test for int, because it can come in as a string
$roleselect = "AND ra.roleid = $roleid";
} else {
$roleselect = '';