]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix the way we create a new vcard to avoid to have multiple UIDs
authorBjoern Schiessle <bjoern@schiessle.org>
Mon, 13 Mar 2017 13:47:08 +0000 (14:47 +0100)
committerBjoern Schiessle <bjoern@schiessle.org>
Fri, 24 Mar 2017 10:06:41 +0000 (11:06 +0100)
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
apps/dav/lib/CardDAV/Converter.php

index ba0c4c2a2d535ce63f7cca2dce375ff9b9416453..0f8ea799f1e599fe371d70865ba2c0dfc2b93b49 100644 (file)
@@ -55,7 +55,8 @@ class Converter {
                $image = $this->getAvatarImage($user);
 
                $vCard = new VCard();
-               $vCard->add(new Text($vCard, 'UID', $uid));
+               $vCard->VERSION = '3.0';
+               $vCard->UID = $uid;
 
                $publish = false;