mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-21 22:22:15 +01:00
Fix PHP 7.2 warning "PHP Warning: count() Parameter must be an array or object ..."
This commit is contained in:
parent
d15841e3eb
commit
5a0cd76250
@ -1703,7 +1703,7 @@ $filter['before']= date("d-M-Y", $cutoffdate2);
|
||||
{
|
||||
$sortResult = $sortResultwH;
|
||||
}
|
||||
$rowsFetched['rowsFetched'] = count($sortResult['header']);
|
||||
$rowsFetched['rowsFetched'] = $sortResult['header'] ? count($sortResult['header']) : 0;
|
||||
if (empty($rowsFetched['messages'])) $rowsFetched['messages'] = $rowsFetched['rowsFetched'];
|
||||
|
||||
//error_log(__METHOD__.__LINE__.' Rows fetched:'.$rowsFetched.' Data:'.array2string($sortResult));
|
||||
|
Loading…
Reference in New Issue
Block a user