Skip to content

Commit

Permalink
Fix fatal error when calculating alarms on a recurrence that has comp…
Browse files Browse the repository at this point in the history
…leted.
  • Loading branch information
mrubinsk committed Jul 20, 2014
1 parent fe4ada9 commit 0975986
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kronolith/lib/Event.php
Expand Up @@ -2144,7 +2144,7 @@ public function toAlarm($time, $user = null, $prefs = null)

if ($this->recurs()) {
$eventDate = $this->recurrence->nextRecurrence($time);
if ($eventDate && $this->recurrence->hasException($eventDate->year, $eventDate->month, $eventDate->mday)) {
if (!$eventDate || ($eventDate && $this->recurrence->hasException($eventDate->year, $eventDate->month, $eventDate->mday))) {
return;
}
$start = clone $eventDate;
Expand Down

0 comments on commit 0975986

Please sign in to comment.