[Pkg-owncloud-commits] [php-sabre-vobject] 66/341: !xml Better parameters support.
David Prévot
taffit at moszumanska.debian.org
Tue Aug 11 13:35:34 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 05d6873f1d11257ea51ff32a475edf1983e895e6
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date: Tue Nov 18 14:47:37 2014 +0100
!xml Better parameters support.
---
lib/Parser/XML.php | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/Parser/XML.php b/lib/Parser/XML.php
index 240328c..5083071 100644
--- a/lib/Parser/XML.php
+++ b/lib/Parser/XML.php
@@ -82,7 +82,7 @@ class XML extends Parser {
$propertyName = static::getTagName($xmlProperty['name']);
$propertyParameters = [];
- foreach($xmlProperty['value'] as $xmlPropertyChild) {
+ foreach($xmlProperty['value'] as $i => $xmlPropertyChild) {
if('parameters' !== static::getTagName($xmlPropertyChild['name']))
continue;
@@ -92,6 +92,8 @@ class XML extends Parser {
foreach($xmlParameters as $xmlParameter)
$propertyParameters[static::getTagName($xmlParameter['name'])]
= $xmlParameter['value'][0]['value'];
+
+ array_splice($xmlProperty['value'], $i, 1);
}
$propertyType = static::getTagName($xmlProperty['value'][0]['name']);
--
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