[Pkg-owncloud-commits] [php-sabre-vobject] 122/341: Prevent key-value element to create an error.
David Prévot
taffit at moszumanska.debian.org
Tue Aug 11 13:35:40 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 a2263f7edbac0b7a6f833ecdbd0cf4360ce9ea4f
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date: Wed Jan 14 16:05:13 2015 +0100
Prevent key-value element to create an error.
---
lib/Parser/XML.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/Parser/XML.php b/lib/Parser/XML.php
index 037fb21..ae1f104 100644
--- a/lib/Parser/XML.php
+++ b/lib/Parser/XML.php
@@ -120,7 +120,8 @@ class XML extends Parser {
foreach ($xmlProperty['value'] as $i => $xmlPropertyChild) {
- if ('parameters' !== static::getTagName($xmlPropertyChild['name']))
+ if ( !is_array($xmlPropertyChild)
+ || 'parameters' !== static::getTagName($xmlPropertyChild['name']))
continue;
$xmlParameters = $xmlPropertyChild['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