Fix PHP8 warnings

This commit is contained in:
Aleksander Machniak 2023-11-29 15:43:08 +01:00
parent f9ac968288
commit c8ac5637a4
2 changed files with 2 additions and 2 deletions

View file

@ -1230,7 +1230,7 @@ class kolab_driver extends calendar_driver
// save properties to a recurrence exception instance
if (!empty($old['_instance']) && isset($master['recurrence']['EXCEPTIONS'])) {
if ($this->update_recurrence_exceptions($master, $event, $old, $savemode)) {
$success = $storage->update_event($master, $old['id']);
$success = $storage->update_event($master, $old['id'] ?? null);
break;
}
}

View file

@ -931,7 +931,7 @@ class libcalendaring_itip
}
if (!empty($event['recurrence_date'])) {
$table->add('label', '');
$table->add('recurrence-id', $this->gettext($event['thisandfuture'] ? 'itipfutureoccurrence' : 'itipsingleoccurrence'));
$table->add('recurrence-id', $this->gettext(!empty($event['thisandfuture']) ? 'itipfutureoccurrence' : 'itipsingleoccurrence'));
}
else if (!empty($event['recurrence'])) {
$table->add('label', $this->gettext('recurring'));