[Pkg-owncloud-commits] [php-sabre-vobject] 149/341: Support XML serialization of multi-valued property.
David Prévot
taffit at moszumanska.debian.org
Tue Aug 11 13:35:42 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 788b8fac87c662fc1e271d9e192cf3a11e18b672
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date: Fri Jan 16 15:34:32 2015 +0100
Support XML serialization of multi-valued property.
---
lib/Property.php | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/lib/Property.php b/lib/Property.php
index 740979f..e4a696a 100644
--- a/lib/Property.php
+++ b/lib/Property.php
@@ -382,10 +382,13 @@ abstract class Property extends Node {
'value' => $parameters
];
- $properties['value'][] = [
- 'name' => strtolower($this->getValueType()),
- 'value' => $this->getXmlValue()[0]
- ];
+ foreach ($this->getXmlValue() as $value) {
+ $properties['value'][] = [
+ 'name' => strtolower($this->getValueType()),
+ 'value' => $value
+ ];
+ }
+
return $properties;
--
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