fix PHP 8.0 TypeError: implode(): Argument #2 ($array) must be of type ?array, string given

This commit is contained in:
Ralf Becker 2021-11-16 08:40:43 +01:00
parent 39c93ac9ca
commit 03a9c7efe2

View File

@ -498,7 +498,7 @@ use EGroupware\Api\Etemplate;
$edit_link, $definition->name );
}
$actions[] = lang('Edit your file to match the definition:') . ' '
. implode(array_map('lang',array_intersect_key($options['csv_fields'],$options['field_mapping'])),', ');
. implode(', ', array_map('lang', array_intersect_key($options['csv_fields'], $options['field_mapping'])));
$message[] = "\n<li>".implode($actions,"\n<li>");
}
}