mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 13:38:32 +01:00
MDL-37559 fix display of multiple roles of other users
Credit goes to Tyron Delean, thanks.
This commit is contained in:
parent
a5ec499521
commit
00c269db37
@ -875,7 +875,9 @@ class course_enrolment_manager {
|
||||
break;
|
||||
}
|
||||
}
|
||||
$users[$userrole->id]['roles'] = array();
|
||||
if (!isset($users[$userrole->id]['roles'])) {
|
||||
$users[$userrole->id]['roles'] = array();
|
||||
}
|
||||
$users[$userrole->id]['roles'][$userrole->roleid] = array(
|
||||
'text' => $roletext,
|
||||
'unchangeable' => !$changeable
|
||||
|
Loading…
x
Reference in New Issue
Block a user