MDL-13229 - Cannot export group events - now make it export group events if 'all' is selected - Oops, allow for course without groups.

This commit is contained in:
tjhunt
2008-06-23 14:34:55 +00:00
parent 61faff2eec
commit 3f35d9da9d
+3
View File
@@ -40,6 +40,9 @@ if(!empty($what) && !empty($time)) {
$groups = $groups + array_keys($course_groups);
}
}
if (empty($groups)) {
$groups = false;
}
$courses[SITEID] = new stdClass;
$courses[SITEID]->shortname = get_string('globalevents', 'calendar');
} else {