Skip to content

Commit

Permalink
MDL-53027 calendar: Fix false empty result from calendar_get_events().
Browse files Browse the repository at this point in the history
  • Loading branch information
David Balch authored and cameorn1730 committed Feb 24, 2016
1 parent 8d42058 commit 6b36cd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions calendar/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 6b36cd5

Please sign in to comment.