mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
fix PHP 8.0 TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given
This commit is contained in:
parent
1f50b3b0c5
commit
2f6f682cd8
@ -1633,7 +1633,7 @@ class mail_zpush implements activesync_plugin_write, activesync_plugin_sendmail,
|
|||||||
//ZLog::Write(LOGLEVEL_DEBUG,__METHOD__.__LINE__.array2string($rv_messages));
|
//ZLog::Write(LOGLEVEL_DEBUG,__METHOD__.__LINE__.array2string($rv_messages));
|
||||||
$list=array();
|
$list=array();
|
||||||
|
|
||||||
$cnt = count($rv_messages['header']);
|
$cnt = count($rv_messages['header'] ?? []);
|
||||||
//$list['status'] = 1;
|
//$list['status'] = 1;
|
||||||
$list['searchtotal'] = $cnt;
|
$list['searchtotal'] = $cnt;
|
||||||
$list["range"] = $_searchquery->GetSearchRange();
|
$list["range"] = $_searchquery->GetSearchRange();
|
||||||
|
Loading…
Reference in New Issue
Block a user