Fix for bug 3113, some innocent notices.
This commit is contained in:
+1
-1
@@ -1056,7 +1056,7 @@ function calendar_set_filters(&$courses, &$group, &$user, $courseeventsfrom = NU
|
||||
}
|
||||
|
||||
// If this course has groups, show events from all of them
|
||||
if($groupmodes[$courseid]->groupmode != NOGROUPS && ($grouprecords = get_groups($courseid)) !== false) {
|
||||
if(isset($groupmodes[$courseid]) && $groupmodes[$courseid]->groupmode != NOGROUPS && ($grouprecords = get_groups($courseid)) !== false) {
|
||||
$grouparray = array_merge($grouparray, array_keys($grouprecords));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user