mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +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
dfebb587ed
commit
8250784543
@ -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