From 5de311550051fd3db5be8195719828a1e0e267f2 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 14 Nov 2021 10:32:22 +0100 Subject: [PATCH] fix PHP 8.0 TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given --- calendar/inc/class.calendar_ui.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_ui.inc.php b/calendar/inc/class.calendar_ui.inc.php index d3b03e67b1..8ec58bd39e 100644 --- a/calendar/inc/class.calendar_ui.inc.php +++ b/calendar/inc/class.calendar_ui.inc.php @@ -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)