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

This commit is contained in:
Ralf Becker 2021-11-14 15:37:46 +01:00
parent 5de3115500
commit 38aec8c19e

View File

@ -116,7 +116,7 @@ class importexport_admin_prefs_sidebox_hooks
),false)."','_blank',850,440,'yes')", ),false)."','_blank',850,440,'yes')",
'icon' => 'import', 'icon' => 'import',
'app' => 'importexport', 'app' => 'importexport',
'text' => in_array($appname, array('sitemgr')) || count($plugins[$appname]['import']) > 1 ? 'Import' : 'Import CSV' 'text' => in_array($appname, array('sitemgr')) || count($plugins[$appname]['import'] ?? []) > 1 ? 'Import' : 'Import CSV'
); );
if($GLOBALS['egw_info']['flags']['disable_importexport']['import']) { if($GLOBALS['egw_info']['flags']['disable_importexport']['import']) {
$file['Import CSV']['link'] = ''; $file['Import CSV']['link'] = '';