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, bool given
This commit is contained in:
parent
7d49599943
commit
5de3115500
@ -678,7 +678,7 @@ class calendar_ui
|
||||
'filter' => $this->cal_prefs['saved_states']['status_filter'],
|
||||
'num_rows' => 1
|
||||
);
|
||||
$filter_match = count($this->bo->search($filter_check, $this->bo->so->cal_table.".cal_id = {$event['id']}")) > 0;
|
||||
$filter_match = (bool)$this->bo->search($filter_check, $this->bo->so->cal_table.".cal_id = {$event['id']}");
|
||||
}
|
||||
|
||||
if(!$event || !$filter_match)
|
||||
|
Loading…
Reference in New Issue
Block a user