[Pkg-owncloud-commits] [php-sabre-vobject] 233/341: Avoid an error when parsing an empty list of prop.

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 13:35:51 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 63ba1f71c47299c89ea7d517c3e3ead83e264e2e
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date:   Tue Jan 27 15:14:54 2015 +0100

    Avoid an error when parsing an empty list of prop.
---
 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 df11a34..3f7205f 100644
--- a/lib/Parser/XML.php
+++ b/lib/Parser/XML.php
@@ -163,7 +163,7 @@ class XML extends Parser {
      */
     protected function parseProperties(Component $parentComponent, $propertyNamePrefix = '') {
 
-        foreach ($this->pointer as $xmlProperty) {
+        foreach ($this->pointer ?: [] as $xmlProperty) {
 
             list($namespace, $tagName) = SabreXml\Util::parseClarkNotation($xmlProperty['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