Addressbook: fix "array_key_exists(): Argument #2 ($array) must be of type array, null given" error editing import vcard definition

This commit is contained in:
nathan 2022-11-21 09:19:23 -07:00
parent 6d41c9c30b
commit 67e643be8d

View File

@ -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];
}