changed to get_recordset_sql because get_records forces the first element to be$
This commit is contained in:
+6
-1
@@ -442,7 +442,12 @@
|
||||
error('That role does not exist');
|
||||
}
|
||||
$a->number = $totalcount;
|
||||
$a->role = $currentrole->name;
|
||||
// MDL-12217, use course specific rolename
|
||||
if (isset($rolenames[$currentrole->id])){
|
||||
$a->role = $rolenames[$currentrole->id];
|
||||
}else{
|
||||
$a->role = $currentrole->name;//safety net
|
||||
}
|
||||
$heading = format_string(get_string('xuserswiththerole', 'role', $a));
|
||||
if (user_can_assign($context, $roleid)) {
|
||||
$heading .= ' <a href="'.$CFG->wwwroot.'/'.$CFG->admin.'/roles/assign.php?roleid='.$roleid.'&contextid='.$context->id.'">';
|
||||
|
||||
Reference in New Issue
Block a user