From 10c1f1440fc06d4403ab157939ac77cac7a332d0 Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 20 Apr 2022 17:31:02 +0200 Subject: [PATCH] fix PHP 8.x TypeError: Cannot access offset of type string on string --- .../inc/class.addressbook_wizard_export_contacts_csv.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addressbook/inc/class.addressbook_wizard_export_contacts_csv.inc.php b/addressbook/inc/class.addressbook_wizard_export_contacts_csv.inc.php index 4d453ac594..da992aa3d2 100644 --- a/addressbook/inc/class.addressbook_wizard_export_contacts_csv.inc.php +++ b/addressbook/inc/class.addressbook_wizard_export_contacts_csv.inc.php @@ -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; } -} +} \ No newline at end of file