|
|
@@ -1298,7 +1298,7 @@ function getCalendar()
|
|
|
if (!calendarDaysCheck($calendarStartDiff->format('%R') . $calendarStartDiff->days, $calendarEndDiff->format('%R') . $calendarEndDiff->days)) {
|
|
|
break;
|
|
|
}
|
|
|
- if (getCalenderRepeatUntil(trim($icsEvent["RRULE"]))) {
|
|
|
+ if (isset($icsEvent["RRULE"]) && getCalenderRepeatUntil(trim($icsEvent["RRULE"]))) {
|
|
|
$untilDate = new DateTime (getCalenderRepeatUntil(trim($icsEvent["RRULE"])));
|
|
|
$untilDiff = date_diff($currentDate, $untilDate);
|
|
|
if ($untilDiff->days > 0) {
|