From 24028abc95d0555dde61e0b415330dfa45feff6e Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Tue, 16 Oct 2007 04:33:46 +0000 Subject: [PATCH] fixing a warning --- blocks/calendar_month/block_calendar_month.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); } -- 2.39.5