[Pkg-owncloud-commits] [php-sabre-vobject] 180/341: Support multi-value for “default” property.
David Prévot
taffit at moszumanska.debian.org
Tue Aug 11 13:35:45 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 27695da27e516bde609f00bd60a26cb7f0e1e2e8
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date: Wed Jan 21 15:35:41 2015 +0100
Support multi-value for “default” property.
“default” means all properties that are not special.
---
lib/Parser/XML.php | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lib/Parser/XML.php b/lib/Parser/XML.php
index 2a37ec7..267189e 100644
--- a/lib/Parser/XML.php
+++ b/lib/Parser/XML.php
@@ -235,7 +235,10 @@ class XML extends Parser {
default:
$propertyType = static::getTagName($xmlProperty['value'][0]['name']);
- $propertyValue = [$xmlProperty['value'][0]['value']];
+
+ foreach ($xmlProperty['value'] as $value) {
+ $propertyValue[] = $value['value'];
+ }
if ('date' === $propertyType) {
$propertyParameters['value'] = 'DATE';
--
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