MDL-53027 calendar: Fix false empty result from calendar_get_events().

This commit is contained in:
David Balch
2016-02-24 18:42:58 +08:00
committed by Cameron Ball
parent 8d42058734
commit 6b36cd591e
+2 -2
View File
@@ -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();
}