mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-02-20 01:21:20 +01:00
Use symfony/polyfill-php85 for array_first() and array_last()
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user