mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
changed to get_recordset_sql because get_records forces the first element to be$
This commit is contained in:
parent
0cbcc8efc1
commit
ed61510be6
@ -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.'">';
|
||||
|
Loading…
x
Reference in New Issue
Block a user