diff --git a/src/EventListener/DataContainer/CalendarEventsCallbacks.php b/src/EventListener/DataContainer/CalendarEventsCallbacks.php index e78bc76..e035954 100644 --- a/src/EventListener/DataContainer/CalendarEventsCallbacks.php +++ b/src/EventListener/DataContainer/CalendarEventsCallbacks.php @@ -299,7 +299,7 @@ public function processAllRecurrences(mixed $activeRecord, array $arrAllRecurren $this->processExtendedRecurring($activeRecord, $arrSet, $arrAllRecurrences, $maxRepeatEnd); // process exceptions - $currentEndDate = \count($maxRepeatEnd) > 1 ? max($maxRepeatEnd) : $arrSet['repeatEnd']; + $currentEndDate = \count($maxRepeatEnd) > 1 ? (int) max($maxRepeatEnd) : (int) ($arrSet['repeatEnd'] ?? 0); [$exceptionList, $maxRepeatEnd] = $this->processExceptions($activeRecord, $currentEndDate, $maxRepeatEnd); $arrSet['exceptionList'] = $exceptionList;