Merge branch 'MDL-53027-master' of git://github.com/cameron1729/moodle

This commit is contained in:
Andrew Nicols 2016-03-01 10:40:27 +08:00
commit 57ecaf68b8

View File

@ -728,8 +728,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();
}