From e7e16da33d62b02b4a7c952f6c02e16c9e940d70 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 14 Nov 2021 15:37:46 +0100 Subject: [PATCH] fix PHP 8.0 TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given --- .../inc/class.importexport_admin_prefs_sidebox_hooks.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/importexport/inc/class.importexport_admin_prefs_sidebox_hooks.inc.php b/importexport/inc/class.importexport_admin_prefs_sidebox_hooks.inc.php index eccd333783..09761ac684 100644 --- a/importexport/inc/class.importexport_admin_prefs_sidebox_hooks.inc.php +++ b/importexport/inc/class.importexport_admin_prefs_sidebox_hooks.inc.php @@ -116,7 +116,7 @@ class importexport_admin_prefs_sidebox_hooks ),false)."','_blank',850,440,'yes')", 'icon' => 'import', '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']) { $file['Import CSV']['link'] = '';