fix PHP 8.0 Error: count(): Argument #1 ($value) must be of type Countable|array, null given

This commit is contained in:
Ralf Becker 2022-01-08 11:27:15 +02:00
parent 0ae7f21fa1
commit 9f6451193e

View File

@ -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;
}