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 fd7e7e2828
commit f50b405555

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