From 0ea9d513e5c582849837feb51e54c769d44ce7a1 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 20 Nov 2018 08:08:33 +0800 Subject: [PATCH] fix PHP 7.2 Warning count(): Parameter must be an array or an object that implements Countable --- api/src/WebDAV/Tools/_parse_propfind.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/src/WebDAV/Tools/_parse_propfind.php b/api/src/WebDAV/Tools/_parse_propfind.php index ffa0655ba6..5148187992 100644 --- a/api/src/WebDAV/Tools/_parse_propfind.php +++ b/api/src/WebDAV/Tools/_parse_propfind.php @@ -51,12 +51,12 @@ class _parse_propfind var $error; /** - * found properties are collected here + * found properties are collected here or string "all" or "names" * - * @var array + * @var array|string * @access public */ - var $props = false; + var $props = array(); /** * found (CalDAV) filters are collected here @@ -185,7 +185,7 @@ class _parse_propfind fclose($f_in); // if no input was parsed it was a request - if(!count($this->props)) $this->props = "all"; // default + if(is_array($this->props) && !count($this->props)) $this->props = "all"; // default }