Page MenuHomePhorge

D25060.1734918576.diff
No OneTemporary

D25060.1734918576.diff

diff --git a/src/applications/calendar/query/PhabricatorCalendarEventQuery.php b/src/applications/calendar/query/PhabricatorCalendarEventQuery.php
--- a/src/applications/calendar/query/PhabricatorCalendarEventQuery.php
+++ b/src/applications/calendar/query/PhabricatorCalendarEventQuery.php
@@ -222,12 +222,16 @@
$limit = $this->getRecurrenceLimit($event, $raw_limit);
+ // note that this can be NULL for some imported events
$set = $event->newRecurrenceSet();
- $recurrences = $set->getEventsBetween(
- $start_date,
- $end_date,
- $limit + 1);
+ $recurrences = [];
+ if ($set) {
+ $recurrences = $set->getEventsBetween(
+ $start_date,
+ $end_date,
+ $limit + 1);
+ }
// We're generating events from the beginning and then filtering them
// here (instead of only generating events starting at the start date)

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 01:49 (8 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1026630
Default Alt Text
D25060.1734918576.diff (934 B)

Event Timeline