]> git.mjollnir.org Git - moodle.git/commitdiff
$this->course was used but not defined.
authorgustav_delius <gustav_delius>
Tue, 7 Dec 2004 07:32:16 +0000 (07:32 +0000)
committergustav_delius <gustav_delius>
Tue, 7 Dec 2004 07:32:16 +0000 (07:32 +0000)
blocks/calendar_month/block_calendar_month.php

index 244c1f16114a922043c56ce0c742d05fadc78ee7..359d2b58136235b141ede48736eefb44e43c5136 100644 (file)
@@ -60,7 +60,8 @@ class block_calendar_month extends block_base {
             $this->content->text .= calendar_overlib_html();
             $this->content->text .= calendar_top_controls('course', array('id' => $courseshown, 'm' => $_GET['cal_m'], 'y' => $_GET['cal_y']));
             $this->content->text .= calendar_get_mini($courses, $group, $user, $_GET['cal_m'], $_GET['cal_y']);
-            $this->content->text .= calendar_filter_controls('course', '', $this->course);
+            $course = get_record('course', 'id', $this->instance->pageid);
+            $this->content->text .= calendar_filter_controls('course', '', $course);
         }
 
         return $this->content;