Restore php 7.2 compat

??= is apparently only available from 7.4 on.

See:
https://wiki.php.net/rfc/null_coalesce_equal_operator
This commit is contained in:
Christian Mollekopf 2024-03-26 12:48:32 +01:00
parent d19de72637
commit 1ecff64896

View file

@ -597,7 +597,7 @@ class libcalendaring_vcalendar implements Iterator
]);
$attachment['data'] = $value;
$attachment['size'] ??= strlen($value);
$attachment['size'] = $attachment['size'] ?? strlen($value);
$attachment['id'] = md5(($attachment['mimetype'] ?? 'application/octet-stream') . ($attachment['name'] ?? 'noname'));
$event['attachments'][] = $attachment;