Fixed, PHP Warning: count(): Parameter must be an array or an object that implements Countable in

This commit is contained in:
Alexandros Sigalas
2019-03-03 15:39:57 +02:00
committed by Ralf Becker
parent fb31d08aba
commit b328bf151a
2 changed files with 3 additions and 3 deletions

View File

@@ -532,7 +532,7 @@ class Sql extends Api\Storage
$filter['private'] = 0;
}
// if multiple addressbooks (incl. current owner) are searched, we need full acl filter
elseif(count($filter['owner']) > 1)
elseif(is_array($filter['owner']) && count($filter['owner']) > 1)
{
$filter[] = "($this->table_name.contact_owner=".(int)$GLOBALS['egw_info']['user']['account_id'].
" OR contact_private=0 AND $this->table_name.contact_owner IN (".