MDL-53027 calendar: Fix false empty result from calendar_get_events().
This commit is contained in:
committed by
Cameron Ball
parent
cf0ffe26e6
commit
10a6b8a233
+2
-2
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user