]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-13229 - Cannot export group events - now make it export group events if 'all...
authortjhunt <tjhunt>
Mon, 23 Jun 2008 14:34:56 +0000 (14:34 +0000)
committertjhunt <tjhunt>
Mon, 23 Jun 2008 14:34:56 +0000 (14:34 +0000)
calendar/export_execute.php

index e2cd72c5b3491309752d7268b1cbd70bce44a07a..60b832b5d2166e02e46b4cef63943b615a711d8d 100644 (file)
@@ -38,6 +38,9 @@ if(!empty($what) && !empty($time)) {
                 $course_groups = groups_get_all_groups($course->id, $user->id);
                 $groups = $groups + array_keys($course_groups);
             }
+            if (empty($groups)) {
+                $groups = false;
+            }
             $courses[SITEID] = new stdClass;
             $courses[SITEID]->shortname = get_string('globalevents', 'calendar');
         } else {