Rob Gökemeijer 7 лет назад
Родитель
Сommit
48975286e8
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      api/functions/homepage-connect-functions.php

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