summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-01-22 09:45:56 (GMT)
committerThomas Bruederli <thomas@roundcube.net>2014-01-22 09:46:34 (GMT)
commitfc17fb632b05ad1d88bf134cbb2f97784b52c200 (patch)
treec45a431594d76905c428f579eed5b943d34088c5
parent5858d43484dca328467f3ffba6d2d8abef89cd76 (diff)
downloadiRony-fc17fb632b05ad1d88bf134cbb2f97784b52c200.tar.gz
Don't send empty N: property (#2787)
-rw-r--r--lib/Kolab/CardDAV/ContactsBackend.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Kolab/CardDAV/ContactsBackend.php b/lib/Kolab/CardDAV/ContactsBackend.php
index 45ba54b..3e5f820 100644
--- a/lib/Kolab/CardDAV/ContactsBackend.php
+++ b/lib/Kolab/CardDAV/ContactsBackend.php
@@ -646,7 +646,7 @@ class ContactsBackend extends CardDAV\Backend\AbstractBackend
$vc->add($prop_prefix . 'MEMBER', $value);
}
}
- else {
+ else if ($contact['surname'] . $contact['firstname'] . $contact['middlename'] . $contact['prefix'] . $contact['suffix'] != '') {
$n = VObject\Property::create('N');
$n->setParts(array($contact['surname'], $contact['firstname'], $contact['middlename'], $contact['prefix'], $contact['suffix']));
$vc->add($n);