From 5e58f699a16f08f4c7fe626d82cb06985a18b851 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Fri, 16 Jul 2010 08:57:44 +0000 Subject: [PATCH] Calendar preferences MDL-23332 fix db call --- calendar/preferences.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/preferences.php b/calendar/preferences.php index a9f139f049d9c..a221b046c95b8 100644 --- a/calendar/preferences.php +++ b/calendar/preferences.php @@ -7,7 +7,7 @@ require_once($CFG->dirroot.'/calendar/preferences_form.php'); $course = $site = get_site(); -if (isset($SESSION->cal_course_referer)) { +if (!empty($SESSION->cal_course_referer)) { $course = $DB->get_record('course', array('id'=>$SESSION->cal_course_referer), '*', MUST_EXIST); }