diff options
author | Aleksander Machniak <alec@alec.pl> | 2020-11-02 20:49:39 +0300 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2020-11-02 20:49:39 +0300 |
commit | e99fb3968da1284cd8f36b19b181738c06e6c4a4 (patch) | |
tree | 1bf7437c66dee1067d6d1dcb81aa383c2ff0df0f /program/include/rcmail.php | |
parent | 4a3bed31836d489a372b8dfca20fea2164a0ee94 (diff) |
Add tests for contacts export action, fix PHP8 issues
Diffstat (limited to 'program/include/rcmail.php')
-rw-r--r-- | program/include/rcmail.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php index 2e1d49561..c6911ae9c 100644 --- a/program/include/rcmail.php +++ b/program/include/rcmail.php @@ -335,7 +335,7 @@ class rcmail extends rcube $plugin = $this->plugins->exec_hook('addressbook_get', array('id' => $id, 'writeable' => $writeable)); // plugin returned instance of a rcube_addressbook - if ($plugin['instance'] instanceof rcube_addressbook) { + if (!empty($plugin['instance']) && $plugin['instance'] instanceof rcube_addressbook) { $contacts = $plugin['instance']; } } @@ -483,7 +483,7 @@ class rcmail extends rcube unset($list[$idx]); } // remove from list if hidden as requested - else if ($skip_hidden && $item['hidden']) { + else if ($skip_hidden && !empty($item['hidden'])) { unset($list[$idx]); } } |