mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-23 14:28:45 +01:00
fix count(): Argument #1 ($value) must be of type Countable|array, null given
This commit is contained in:
parent
57fcc04fb0
commit
0573437a3b
@ -266,8 +266,8 @@ class Accounts
|
||||
{
|
||||
return $this->backend->search($param);
|
||||
}, [], self::READ_CACHE_TIMEOUT);
|
||||
$this->total = count($result);
|
||||
if (!empty($param['offset']))
|
||||
$this->total = $result ? count($result) : 0;
|
||||
if ($result && !empty($param['offset']))
|
||||
{
|
||||
return array_slice($result, $param['start'], $param['offset'], true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user