]> git.mjollnir.org Git - moodle.git/commitdiff
Small bugfix: when entering the calendar with "on-the-fly" login, the breadcrumbs
authordefacer <defacer>
Mon, 24 May 2004 14:20:32 +0000 (14:20 +0000)
committerdefacer <defacer>
Mon, 24 May 2004 14:20:32 +0000 (14:20 +0000)
now display correctly. Even though there isn't normally any link that allows you
to do this.

calendar/view.php

index 98c961e989f74c1a04819463c1c7474625a94d56..eeea9bb9675ade51592f0a27e4cabb09c4fe34b8 100644 (file)
@@ -94,7 +94,8 @@
     // If a course has been supplied in the URL, change the filters to show that one
     if(!empty($_GET['course'])) {
         if(is_numeric($_GET['course']) && $_GET['course'] > 0 && record_exists('course', 'id', $_GET['course'])) {
-            $SESSION->cal_courses_shown = $_GET['course'];
+            $SESSION->cal_courses_shown = intval($_GET['course']);
+            calendar_set_referring_course($SESSION->cal_courses_shown);
         }
     }