From 9f6451193e92aec15f86c6a648a3e2cce64ed61f Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 8 Jan 2022 11:27:15 +0200 Subject: [PATCH] fix PHP 8.0 Error: count(): Argument #1 ($value) must be of type Countable|array, null given --- setup/inc/class.setup_process.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/inc/class.setup_process.inc.php b/setup/inc/class.setup_process.inc.php index 58d7a06d39..990c22fd0e 100755 --- a/setup/inc/class.setup_process.inc.php +++ b/setup/inc/class.setup_process.inc.php @@ -470,7 +470,7 @@ class setup_process A manual sql script install is needed, but we do add the hooks */ $enabled = 99; - if (count($appdata['tables']) && empty($appdata['skip_create_tables'])) + if (!empty($appdata['tables']) && empty($appdata['skip_create_tables'])) { $enabled = False; }