From 3da9840ca9465b981e3a7ee0fb79fcbfc68b40a2 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 15 Nov 2021 08:02:58 +0100 Subject: [PATCH] fix PHP 8.0 TypeError: array_keys(): Argument #1 ($array) must be of type array, null given --- importexport/inc/class.importexport_export_csv.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/importexport/inc/class.importexport_export_csv.inc.php b/importexport/inc/class.importexport_export_csv.inc.php index b143d53346..620814a53f 100644 --- a/importexport/inc/class.importexport_export_csv.inc.php +++ b/importexport/inc/class.importexport_export_csv.inc.php @@ -288,7 +288,7 @@ class importexport_export_csv implements importexport_iface_export_record break; default: list($type) = explode('-',$c_field['type'],2); - if(in_array($type, array_keys($GLOBALS['egw_info']['apps']))) { + if (in_array($type, array_keys($GLOBALS['egw_info']['apps'] ?? []))) { $fields['links'][] = $name; $links[$name] = $c_field['type']; }