Permalink
Browse files

Merge branch 'w03_MDL-37559_m23_otherusers' of git://github.com/skoda…

…k/moodle into MOODLE_23_STABLE
  • Loading branch information...
2 parents 65ac286 + bb92d90 commit d971df89b15359c94e170df1d8dc12f8274928a6 @nebgor nebgor committed Jan 21, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 enrol/locallib.php
View
@@ -792,7 +792,9 @@ public function get_other_users_for_display(core_enrol_renderer $renderer, moodl
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

0 comments on commit d971df8

Please sign in to comment.