mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-05 21:49:28 +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
037ce6d9fe
commit
03a2eb7944
@ -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