fixed PHP 5.4 Warning: Illegal string offset "name" on line 793

This commit is contained in:
Ralf Becker 2012-05-21 10:02:30 +00:00
parent 1df0ef843a
commit f80477e938

View File

@ -790,7 +790,7 @@ class HTTP_WebDAV_Server
// check if property exists in result
foreach ($file["props"] as &$prop) {
if ( $reqprop["name"] == $prop["name"]
if (is_array($prop) && $reqprop["name"] == $prop["name"]
&& @$reqprop["xmlns"] == $prop["ns"]) {
$found = true;
break;