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:48:18 +01:00
parent 38aec8c19e
commit f4a8b56680

View File

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