Use symfony/polyfill-php85 for array_first() and array_last()

This commit is contained in:
Aleksander Machniak
2025-10-03 14:27:05 +02:00
parent 918e22be42
commit 1e55383302
11 changed files with 12 additions and 35 deletions

View File

@@ -311,7 +311,7 @@ class vcard_attachments extends rcube_plugin
// Get first writeable addressbook if the configured doesn't exist
// This can happen when user deleted the addressbook (e.g. Kolab folder)
if (!is_object($CONTACTS)) {
$source = reset($rcmail->get_address_sources(true));
$source = array_first($rcmail->get_address_sources(true));
$CONTACTS = $rcmail->get_address_book($source['id'], true);
}