]> git.mjollnir.org Git - moodle.git/commitdiff
Better fix for courses menu
authormoodler <moodler>
Sat, 22 May 2004 04:32:35 +0000 (04:32 +0000)
committermoodler <moodler>
Sat, 22 May 2004 04:32:35 +0000 (04:32 +0000)
calendar/view.php

index a7e742786e889c87d038e4fd266b6d46248c3f18..6ced4d107a317e5710ba9092d0978653a8e57008 100644 (file)
@@ -637,10 +637,12 @@ function calendar_course_filter_selector($getvars = '') {
         $courses = get_my_courses($USER->id, 'shortname');
     }
 
+    unset($courses[1]);
+
+    $courseoptions[1] = get_string('fulllistofcourses');
     foreach ($courses as $course) {
         $courseoptions[$course->id] = $course->shortname;
     }
-    $courseoptions[1] = get_string('fulllistofcourses');
 
     if (is_numeric($SESSION->cal_courses_shown)) {
         $selected = $SESSION->cal_courses_shown;