From c175e530bbc410536f2e0cbb2252def31b94894d Mon Sep 17 00:00:00 2001 From: ralf Date: Thu, 15 Sep 2022 14:08:49 +0200 Subject: [PATCH] fix PHP 8.x error: count(): Argument #1 ($value) must by of type Countable|array, null given --- setup/inc/class.setup_detection.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/inc/class.setup_detection.inc.php b/setup/inc/class.setup_detection.inc.php index c47dfee701..0744ba36c3 100755 --- a/setup/inc/class.setup_detection.inc.php +++ b/setup/inc/class.setup_detection.inc.php @@ -395,7 +395,7 @@ class setup_detection // ignore db errors } $GLOBALS['egw_info']['setup']['header_msg'] = 'Stage 2 (Needs Configuration)'; - if(!count($config)) + if(empty($config)) { return 1; }