[Pkg-owncloud-commits] [php-sabredav] 02/12: Fixed another client bug.

David Prévot taffit at moszumanska.debian.org
Mon Jun 1 22:42:47 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to tag 3.0.0-beta3
in repository php-sabredav.

commit 8cd6d242e8bd25c8820c162a49dd70abbcdc3441
Author: Evert Pot <me at evertpot.com>
Date:   Thu May 28 11:14:56 2015 -0400

    Fixed another client bug.
---
 CHANGELOG.md                     | 1 +
 lib/DAV/Xml/Element/Response.php | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7308700..b187a2e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,7 @@ ChangeLog
 ------------------
 
 * Fixed deserializing href properties with no value.
+* Fixed deserializing `{DAV:}propstat` without a `{DAV:}prop`.
 
 
 3.0.0-beta2 (2015-05-27)
diff --git a/lib/DAV/Xml/Element/Response.php b/lib/DAV/Xml/Element/Response.php
index 78673f0..3df962f 100644
--- a/lib/DAV/Xml/Element/Response.php
+++ b/lib/DAV/Xml/Element/Response.php
@@ -177,7 +177,7 @@ class Response implements Element {
                 case '{DAV:}propstat' :
                     $status = $elem['value']['{DAV:}status'];
                     list(, $status, ) = explode(' ', $status, 3);
-                    $properties = $elem['value']['{DAV:}prop'];
+                    $properties = isset($elem['value']['{DAV:}prop']) ? $elem['value']['{DAV:}prop'] : [];
                     $propertyLists[$status] = $properties;
                     break;
                 case '{DAV:}status' :

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git



More information about the Pkg-owncloud-commits mailing list