Skip to content

Commit

Permalink
MDL-16738 fixed + array operator overriding the same numeric keys - c…
Browse files Browse the repository at this point in the history
…redit goes to Vince Gángó
  • Loading branch information
skodak committed Oct 8, 2008
1 parent ebbc87a commit 25a237a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion calendar/export_execute.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
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)) {
Expand Down

0 comments on commit 25a237a

Please sign in to comment.