mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-08 23:19:04 +01:00
fix PHP 7.2 Warning count(): Parameter must be an array or an object that implements Countable
This commit is contained in:
parent
5a7b1aabec
commit
0ea9d513e5
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user