fix PHP Error stalling import of exceptions without master (or private master not readable by importing user)

This commit is contained in:
ralf 2024-06-07 18:54:24 +02:00
parent 9974b35420
commit dfd7f8bd46

View File

@ -1675,7 +1675,7 @@ class calendar_ical extends calendar_boupdate
unset($event['id']); unset($event['id']);
unset($event_info['stored_event']); unset($event_info['stored_event']);
$event['recur_type'] = MCAL_RECUR_NONE; $event['recur_type'] = MCAL_RECUR_NONE;
if (empty($event['recurrence'])) if (empty($event['recurrence']) && $event_info['master_event'])
{ {
// find an existing exception slot // find an existing exception slot
$occurence = $exception = false; $occurence = $exception = false;