From 6b36cd591edd0ad81f6aea9fb02efe767e76be7b Mon Sep 17 00:00:00 2001 From: David Balch Date: Mon, 8 Feb 2016 11:42:28 +0000 Subject: [PATCH] MDL-53027 calendar: Fix false empty result from calendar_get_events(). --- calendar/lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calendar/lib.php b/calendar/lib.php index 5a40c690e1f..67da3e49e9a 100644 --- a/calendar/lib.php +++ b/calendar/lib.php @@ -693,8 +693,8 @@ function calendar_get_events($tstart, $tend, $users, $groups, $courses, $withdur $whereclause = ''; $params = array(); - // Quick test - if(is_bool($users) && is_bool($groups) && is_bool($courses)) { + // Quick test. + if (empty($users) && empty($groups) && empty($courses)) { return array(); }