fix PHP 8.x TypeError: Cannot access offset of type string on string

This commit is contained in:
ralf 2022-04-20 17:31:02 +02:00
parent 525c39a3b0
commit 10c1f1440f

View File

@ -90,7 +90,7 @@ class addressbook_wizard_export_contacts_csv extends importexport_wizard_basic_e
unset ($preserv['button']);
$field_list = $this->get_field_list($content);
$settings = $content['explode_multiselects'] ? $content['explode_multiselects'] : $content['plugin_options']['explode_multiselects'];
$settings = $content['explode_multiselects'] ?: $content['plugin_options']['explode_multiselects'] ?: [];
// Skip this step if no fields applicable
if(count($field_list) == 0) {
@ -149,4 +149,4 @@ class addressbook_wizard_export_contacts_csv extends importexport_wizard_basic_e
}
return $field_list;
}
}
}