From f4a8b56680cfb37d7f971d3595773c9a13ba112f Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 14 Nov 2021 15:48:18 +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 09761ac684..4036297e91 100644 --- a/importexport/inc/class.importexport_admin_prefs_sidebox_hooks.inc.php +++ b/importexport/inc/class.importexport_admin_prefs_sidebox_hooks.inc.php @@ -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'] = '';