]> git.mjollnir.org Git - moodle.git/commitdiff
fixing a warning
authortoyomoyo <toyomoyo>
Tue, 16 Oct 2007 04:33:46 +0000 (04:33 +0000)
committertoyomoyo <toyomoyo>
Tue, 16 Oct 2007 04:33:46 +0000 (04:33 +0000)
blocks/calendar_month/block_calendar_month.php

index ebfa4c0df1edaaacb729da3753d3fae3522809aa..748d5f8e84aa1bd210bb8ceb43b8a42ee332a809 100644 (file)
@@ -72,7 +72,7 @@ class block_calendar_month extends block_base {
         }
         
         // MDL-9059, unset this so that it doesn't stay in session
-        if ($courseset) {
+        if (!empty($courseset)) {
             unset($SESSION->cal_courses_shown[$COURSE->id]);
         }