fix PHP 8.0 error: Illegal offset type

This commit is contained in:
Ralf Becker 2021-10-19 09:18:00 +02:00
parent 310984722f
commit 3ad98840c1

View File

@ -1356,7 +1356,7 @@ class calendar_groupdav extends Api\CalDAV\Handler
}
// from now on we deal with exceptions
$org_recurrence = $org_recurrences[$recurrence['recurrence']];
$org_recurrence = isset($recurrence['recurrence']) ? $org_recurrences[$recurrence['recurrence']] : null;
if (isset($org_recurrence)) // already existing recurrence
{
//error_log(__METHOD__.'() setting id #'.$org_recurrence['id']).' for '.$recurrence['recurrence'].' = '.date('Y-m-d H:i:s',$recurrence['recurrence']);