From: defacer Date: Thu, 20 May 2004 15:36:20 +0000 (+0000) Subject: One more bugfix introduced just now: enabling course events shouldn't X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9a2ba13e51371f549e024d771c2fbc67b0c19765;p=moodle.git One more bugfix introduced just now: enabling course events shouldn't enable site events, too. --- diff --git a/calendar/lib.php b/calendar/lib.php index 5927bb7b39..538afd89ae 100644 --- a/calendar/lib.php +++ b/calendar/lib.php @@ -943,6 +943,7 @@ function calendar_set_filters(&$courses, &$group, &$user, $courseeventsfrom = NU else if(is_array($courseeventsfrom)) { $courses = array_keys($courseeventsfrom); } + $courses = array_diff($courses, array(1)); } else if($SESSION->cal_show_global) { $courses = array(1);