[Pkg-owncloud-commits] [php-sabre-vobject] 108/341: Avoid errors with incomplete document.

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 13:35:39 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 10ca0a32a5148cec9b48dbb9899bc732a2d1d617
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date:   Tue Jan 13 15:59:45 2015 +0100

    Avoid errors with incomplete document.
---
 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 9dc4bc6..1c609c2 100644
--- a/lib/Parser/XML.php
+++ b/lib/Parser/XML.php
@@ -104,7 +104,7 @@ class XML extends Parser {
      */
     protected function parseVcalendarComponents(Component $parentComponent) {
 
-        foreach ($this->pointer['value'] as $children) {
+        foreach ($this->pointer['value'] ?: [] as $children) {
 
             switch (static::getTagName($children['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