From d6149c398d0882c437215b9f2d0af1e3e03b4f94 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 7 Aug 2013 12:34:37 +0200 Subject: [PATCH] Fixed conversion of contact date to kolab format (Bug #2094) - Add contact in Roundcube created contacts with no email address. --- plugins/kolab_addressbook/lib/rcube_kolab_contacts.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php index dd58fddb..b0096c49 100644 --- a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php +++ b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php @@ -1142,8 +1142,9 @@ class rcube_kolab_contacts extends rcube_addressbook // convert email, website, phone values foreach (array('email'=>'address', 'website'=>'url', 'phone'=>'number') as $col => $propname) { + $col_values = $this->get_col_values($col, $contact); $contact[$col] = array(); - foreach ($this->get_col_values($col, $contact) as $type => $values) { + foreach ($col_values as $type => $values) { foreach ((array)$values as $val) { if (!empty($val)) { $contact[$col][] = array($propname => $val, 'type' => $type);