Fixed conversion of contact date to kolab format (Bug #2094)
- Add contact in Roundcube created contacts with no email address.
This commit is contained in:
parent
60778eed8b
commit
d6149c398d
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue