fix PHP 8.0 TypeError: array_keys(): Argument #1 ($array) must be of type array, null given

This commit is contained in:
Ralf Becker 2021-11-15 08:02:58 +01:00
parent b07d08a235
commit 3da9840ca9

View File

@ -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'];
}