mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
fix PHP 8.0 Error: explode(): Argument #2 ($string) must be of type string, array given
This commit is contained in:
parent
3804ee004f
commit
510dbefce8
@ -220,7 +220,11 @@ class importexport_wizard_basic_export_csv
|
|||||||
|
|
||||||
// Add in extra allowed charsets
|
// Add in extra allowed charsets
|
||||||
$config = Api\Config::read('importexport');
|
$config = Api\Config::read('importexport');
|
||||||
$extra_charsets = array_intersect(explode(',',$config['import_charsets']), mb_list_encodings());
|
if (!is_array($config['import_charsets']))
|
||||||
|
{
|
||||||
|
$config['import_charsets'] = explode(',',$config['import_charsets']);
|
||||||
|
}
|
||||||
|
$extra_charsets = array_intersect($config['import_charsets'], mb_list_encodings());
|
||||||
if($extra_charsets)
|
if($extra_charsets)
|
||||||
{
|
{
|
||||||
$sel_options['charset'] += array(lang('Extra encodings') => array_combine($extra_charsets,$extra_charsets));
|
$sel_options['charset'] += array(lang('Extra encodings') => array_combine($extra_charsets,$extra_charsets));
|
||||||
|
Loading…
Reference in New Issue
Block a user