From: toyomoyo Date: Tue, 16 Oct 2007 04:33:46 +0000 (+0000) Subject: fixing a warning X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=24028abc95d0555dde61e0b415330dfa45feff6e;p=moodle.git fixing a warning --- diff --git a/blocks/calendar_month/block_calendar_month.php b/blocks/calendar_month/block_calendar_month.php index ebfa4c0df1..748d5f8e84 100644 --- a/blocks/calendar_month/block_calendar_month.php +++ b/blocks/calendar_month/block_calendar_month.php @@ -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]); }