MDL-37559 fix display of multiple roles of other users

Credit goes to Tyron Delean, thanks.
This commit is contained in:
Petr Škoda
2013-01-19 16:51:29 +01:00
parent 7def53379b
commit 55fc886ea7
+3 -1
View File
@@ -840,7 +840,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