]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-9617: Fixed bug in previous commits.
authormattc-catalyst <mattc-catalyst>
Sun, 6 May 2007 23:19:32 +0000 (23:19 +0000)
committermattc-catalyst <mattc-catalyst>
Sun, 6 May 2007 23:19:32 +0000 (23:19 +0000)
- warnings being displayed in developer mode.
- caused by patch from patch series not being applied.

calendar/lib.php

index 55c39b6ebcff566c56253575e3ca1984092e6870..cbc1326fe8a1e00e34b197701f3ab723a1f4bc5a 100644 (file)
@@ -1252,8 +1252,6 @@ function calendar_get_default_courses($ignoreref = false) {
     else {
         $courses = get_my_courses($USER->id, 'visible DESC', null, false);
     }
-    // Make sure global events are included
-    $courses[0] = true;
 
     return $courses;
 }