Page MenuHomePhorge

D5589.1775259946.diff
No OneTemporary

Authored By
Unknown
Size
751 B
Referenced Files
None
Subscribers
None

D5589.1775259946.diff

diff --git a/src/app/Backends/DAV/Vcard.php b/src/app/Backends/DAV/Vcard.php
--- a/src/app/Backends/DAV/Vcard.php
+++ b/src/app/Backends/DAV/Vcard.php
@@ -6,6 +6,7 @@
use Sabre\VObject\Property;
use Sabre\VObject\Reader;
use Sabre\VObject\Writer;
+use Sabre\VObject\Document;
class Vcard extends CommonObject
{
@@ -125,10 +126,9 @@
public function __toString()
{
if (!$this->vobject) {
- // TODO we currently can only serialize a message back that we just read
throw new \Exception("Writing from properties is not implemented");
}
-
- return Writer::write($this->vobject);
+ $vcard = $this->vobject->convert(Document::VCARD40);
+ return Writer::write($vcard);
}
}

File Metadata

Mime Type
text/plain
Expires
Fri, Apr 3, 11:45 PM (19 m, 7 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18827299
Default Alt Text
D5589.1775259946.diff (751 B)

Event Timeline