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

This commit is contained in:
toyomoyo
2007-12-05 01:13:29 +00:00
parent c8969c22da
commit 086df9283f
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 = '';