diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-07-05 13:41:21 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-07-05 13:41:21 +0200 |
commit | 740b8ea74a122e7988504ea17222bc969fe55813 (patch) | |
tree | 24ecdf44b4e7a4ade2ae2dbe91b0f558e12fb62c /program | |
parent | 911d4e69f484c4f9426950ddb7f25193c8c39a15 (diff) |
Fix bug where contacts with no email address were listed on compose addressbook (#1489970)
Diffstat (limited to 'program')
-rw-r--r-- | program/lib/Roundcube/rcube_contacts.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/Roundcube/rcube_contacts.php b/program/lib/Roundcube/rcube_contacts.php index d215760cf..5e1a40e5b 100644 --- a/program/lib/Roundcube/rcube_contacts.php +++ b/program/lib/Roundcube/rcube_contacts.php @@ -264,7 +264,7 @@ class rcube_contacts extends rcube_addressbook if ($read_vcard) $sql_arr = $this->convert_db_data($sql_arr); else { - $sql_arr['email'] = explode(self::SEPARATOR, $sql_arr['email']); + $sql_arr['email'] = $sql_arr['email'] ? explode(self::SEPARATOR, $sql_arr['email']) : array(); $sql_arr['email'] = array_map('trim', $sql_arr['email']); } |