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 a3ecf4fe0e
commit 3803cbd133

View File

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