[Pkg-owncloud-commits] [php-sabre-vobject] 68/341: !xml Avoid an invalid loop if XML's not wellformed.

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 13:35:35 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 64f09e61eed16b666b1092843c12a0205618b865
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date:   Tue Nov 18 15:11:32 2014 +0100

    !xml Avoid an invalid loop if XML's not wellformed.
---
 lib/Parser/XML.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Parser/XML.php b/lib/Parser/XML.php
index 0d4c372..73ec1c5 100644
--- a/lib/Parser/XML.php
+++ b/lib/Parser/XML.php
@@ -127,7 +127,7 @@ class XML extends Parser {
                     break;
 
                 case 'components':
-                    $components = $children['value'];
+                    $components = $children['value'] ?: [];
 
                     foreach($components as $component) {
 

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