MDL-16738 fixed + array operator overriding the same numeric keys - credit goes to Vince Gángó
This commit is contained in:
@@ -37,7 +37,7 @@ if(!empty($what) && !empty($time)) {
|
||||
foreach ($courses as $course) {
|
||||
$course_groups = groups_get_all_groups($course->id, $user->id);
|
||||
if ($course_groups) {
|
||||
$groups = $groups + array_keys($course_groups);
|
||||
$groups = array_merge($groups, array_keys($course_groups));
|
||||
}
|
||||
}
|
||||
if (empty($groups)) {
|
||||
|
||||
Reference in New Issue
Block a user