Permalink
Browse files

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

…k/moodle
  • Loading branch information...
2 parents 4e0828c + 00c269d commit 93c62e0cd89ce76b1b4b216aa4f1d9698b1a5178 @nebgor nebgor committed Jan 21, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 enrol/locallib.php
View
4 enrol/locallib.php
@@ -875,7 +875,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 93c62e0

Please sign in to comment.