Fix TagList serializer

This commit is contained in:
Vincent Petry 2016-01-22 15:55:54 +01:00
parent 2f3e62a27f
commit 2ef62b0115
1 changed files with 1 additions and 3 deletions

View File

@ -114,9 +114,7 @@ class TagList implements Element {
function xmlSerialize(Writer $writer) { function xmlSerialize(Writer $writer) {
foreach ($this->tags as $tag) { foreach ($this->tags as $tag) {
$writer->startElement(self::NS_OWNCLOUD . ':tag'); $writer->writeElement('{' . self::NS_OWNCLOUD . '}tag', $tag);
$writer->writeElement($tag);
$writer->endElement();
} }
} }
} }