summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2017-03-13 14:47:08 +0100
committerBjoern Schiessle <bjoern@schiessle.org>2017-03-24 11:06:41 +0100
commitfaf836b0c0f94348380e1b0c965d3ea75fa1482d (patch)
treedb313a19b5e8fea11e51810e26cd0ba3e39d8fd8 /apps/dav/lib
parent35d3a082f2a7256c104894faf6820a1410a0a38e (diff)
downloadnextcloud-server-faf836b0c0f94348380e1b0c965d3ea75fa1482d.tar.gz
nextcloud-server-faf836b0c0f94348380e1b0c965d3ea75fa1482d.zip
fix the way we create a new vcard to avoid to have multiple UIDs
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/dav/lib')
-rw-r--r--apps/dav/lib/CardDAV/Converter.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dav/lib/CardDAV/Converter.php b/apps/dav/lib/CardDAV/Converter.php
index ba0c4c2a2d5..0f8ea799f1e 100644
--- a/apps/dav/lib/CardDAV/Converter.php
+++ b/apps/dav/lib/CardDAV/Converter.php
@@ -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;