Changeset View
Changeset View
Standalone View
Standalone View
src/applications/calendar/query/PhabricatorCalendarEventQuery.php
Context not available. | |||||
$limit = $this->getRecurrenceLimit($event, $raw_limit); | $limit = $this->getRecurrenceLimit($event, $raw_limit); | ||||
// note that this can be NULL for some imported events | |||||
$set = $event->newRecurrenceSet(); | $set = $event->newRecurrenceSet(); | ||||
$recurrences = $set->getEventsBetween( | $recurrences = []; | ||||
0: The rest of the codebase uses `array()` instead of `[]`, but that might just be for… | |||||
$start_date, | if ($set) { | ||||
$end_date, | $recurrences = $set->getEventsBetween( | ||||
$limit + 1); | $start_date, | ||||
$end_date, | |||||
$limit + 1); | |||||
} | |||||
valerio.bozzolanAuthorUnsubmitted Done Inline ActionsBasically I've just indented the $recurrences = $set->getEventsBetween() under an if($set). valerio.bozzolan: Basically I've just indented the `$recurrences = $set->getEventsBetween()` under an `if($set)`. | |||||
// We're generating events from the beginning and then filtering them | // We're generating events from the beginning and then filtering them | ||||
// here (instead of only generating events starting at the start date) | // here (instead of only generating events starting at the start date) | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0
The rest of the codebase uses array() instead of [], but that might just be for compatibility with old PHP.