4
0
Rob Gökemeijer 7 жил өмнө
parent
commit
48975286e8

+ 1 - 1
api/functions/homepage-connect-functions.php

@@ -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) {