mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 08:34:29 +01:00
fix PHP Warning count(): Parameter must be an array or an object that implements Countable
This commit is contained in:
parent
3e17b79d5c
commit
90ab703a14
@ -451,7 +451,7 @@ class timesheet_bo extends Api\Storage
|
||||
{
|
||||
$extra_cols[] = $total_sql.' AS ts_total';
|
||||
}
|
||||
if (!isset($filter['ts_owner']) || !count($filter['ts_owner']))
|
||||
if (!isset($filter['ts_owner']) || !count((array)$filter['ts_owner']))
|
||||
{
|
||||
$filter['ts_owner'] = array_keys($this->grants);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user