mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
fix PHP Warning count(): Parameter must be an array or an object that implements Countable
This commit is contained in:
parent
43b80650b4
commit
ccdedcce6d
@ -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