From 67e643be8d4bd7ab986f0b8ed474c355a7907aa3 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 21 Nov 2022 09:19:23 -0700 Subject: [PATCH] Addressbook: fix "array_key_exists(): Argument #2 ($array) must be of type array, null given" error editing import vcard definition --- addressbook/inc/class.addressbook_wizard_import_vcard.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addressbook/inc/class.addressbook_wizard_import_vcard.inc.php b/addressbook/inc/class.addressbook_wizard_import_vcard.inc.php index bc074b1cc1..dc43fd786d 100644 --- a/addressbook/inc/class.addressbook_wizard_import_vcard.inc.php +++ b/addressbook/inc/class.addressbook_wizard_import_vcard.inc.php @@ -107,7 +107,7 @@ class addressbook_wizard_import_vcard extends addressbook_import_vcard foreach(array('override_values') as $field) { - if(!$content[$field] && array_key_exists($field, $content['plugin_options'])) + if(!$content[$field] && is_array($content['plugin_options']) && array_key_exists($field, $content['plugin_options'])) { $content[$field] = $content['plugin_options'][$field]; }