MDL-16738 fixed + array operator overriding the same numeric keys - credit goes to Vince Gángó

This commit is contained in:
skodak
2008-10-08 19:09:43 +00:00
parent ebbc87af56
commit 25a237a24d
+1 -1
View File
@@ -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)) {