[Pkg-owncloud-commits] [php-sabre-vobject] 197/341: Support a parameter with several values.

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 13:35:47 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 539b85fe3c34a387743090e2abc4862165d59f0d
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date:   Mon Jan 26 11:17:51 2015 +0100

    Support a parameter with several values.
---
 lib/Parser/XML.php | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/lib/Parser/XML.php b/lib/Parser/XML.php
index 10805f5..8ea459e 100644
--- a/lib/Parser/XML.php
+++ b/lib/Parser/XML.php
@@ -207,8 +207,16 @@ class XML extends Parser {
                 $xmlParameters = $xmlPropertyChild['value'];
 
                 foreach ($xmlParameters as $xmlParameter) {
+
+                    $propertyParameterValues = [];
+
+                    foreach($xmlParameter['value'] as $xmlParameterValues) {
+                        $propertyParameterValues[] = $xmlParameterValues['value'];
+                    }
+
                     $propertyParameters[static::getTagName($xmlParameter['name'])]
-                        = $xmlParameter['value'][0]['value'];
+                        = implode(',', $propertyParameterValues);
+
                 }
 
                 array_splice($xmlProperty['value'], $i, 1);

-- 
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