]> git.mjollnir.org Git - moodle.git/commitdiff
One more bugfix introduced just now: enabling course events shouldn't
authordefacer <defacer>
Thu, 20 May 2004 15:36:20 +0000 (15:36 +0000)
committerdefacer <defacer>
Thu, 20 May 2004 15:36:20 +0000 (15:36 +0000)
enable site events, too.

calendar/lib.php

index 5927bb7b395a1c4ac57298170d23fb907afb4e20..538afd89aea38b9ac2f456dfd4e0f26ef4cae466 100644 (file)
@@ -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);