Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2020-12-19 12:01:10 +0300
committerAleksander Machniak <alec@alec.pl>2020-12-19 12:01:10 +0300
commit8b83d29f240083e32a4c83c579e74c0b566275a2 (patch)
treea5c4adaa842456030bf985adf09a575221867083 /program/include/rcmail.php
parent94b72c3511831a0a6435bb5358fcd5c0bb3bc18f (diff)
PHP8 fixes, do not require specific error_reporting setting anymore
Diffstat (limited to 'program/include/rcmail.php')
-rw-r--r--program/include/rcmail.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index 2b70c5693..287d67c3d 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -350,7 +350,9 @@ class rcmail extends rcube
// Get first addressbook from the list if configured default doesn't exist
// This can happen when user deleted the addressbook (e.g. Kolab folder)
if (!$contacts && (!$id || $default)) {
- $source = reset($this->get_address_sources($writeable, !$default));
+ $source = $this->get_address_sources($writeable, !$default);
+ $source = reset($source);
+
if (!empty($source)) {
$contacts = $this->get_address_book($source['id']);
if ($contacts) {