summaryrefslogtreecommitdiffstats
path: root/apps/contacts/lib
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-02-12 15:12:08 +0100
committerBart Visscher <bartv@thisnet.nl>2012-02-12 15:14:24 +0100
commit6bd0aad1174f2625560d2a6c1b0138ad5f6cc3fb (patch)
tree8833afb58f7c688420f7c550b13a0fb9485d956f /apps/contacts/lib
parentfacd4cbe17df60af015fc31692aa46225fa59951 (diff)
downloadnextcloud-server-6bd0aad1174f2625560d2a6c1b0138ad5f6cc3fb.tar.gz
nextcloud-server-6bd0aad1174f2625560d2a6c1b0138ad5f6cc3fb.zip
Contacts: Fix adding N property in getContactVCard
Diffstat (limited to 'apps/contacts/lib')
-rw-r--r--apps/contacts/lib/app.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/contacts/lib/app.php b/apps/contacts/lib/app.php
index 5e58f9e928f..914b480e9b4 100644
--- a/apps/contacts/lib/app.php
+++ b/apps/contacts/lib/app.php
@@ -91,11 +91,11 @@ class OC_Contacts_App {
if($vcard->__isset('FN')) {
OC_Log::write('contacts','getContactVCard, found FN field: '.$vcard->__get('FN'), OC_Log::DEBUG);
$n = implode(';', array_reverse(array_slice(explode(' ', $vcard->__get('FN')), 0, 2))).';;;';
+ $vcard->setString('N', $n);
OC_Contacts_VCard::edit( $id, $vcard->serialize());
} else { // Else just add an empty 'N' field :-P
$vcard->setString('N', 'Unknown;Name;;;');
}
- $vcard->setString('N', $n);
}
return $vcard;
}