[Pkg-owncloud-commits] [php-sabre-vobject] 212/341: Serialize a parameter with many values into XML.
David Prévot
taffit at moszumanska.debian.org
Tue Aug 11 13:35:49 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabre-vobject.
commit bf17e4046f53ec7bce7f0a3500880101d0ce9a61
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date: Mon Jan 26 15:49:26 2015 +0100
Serialize a parameter with many values into XML.
---
lib/Parameter.php | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/Parameter.php b/lib/Parameter.php
index 80aa5d3..7e5670f 100644
--- a/lib/Parameter.php
+++ b/lib/Parameter.php
@@ -355,7 +355,9 @@ class Parameter extends Node {
*/
function xmlSerialize(Xml\Writer $writer) {
- $writer->writeElement('text', $this->value);
+ foreach (explode(',', $this->value) as $value) {
+ $writer->writeElement('text', $value);
+ }
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git
More information about the Pkg-owncloud-commits
mailing list