fix array_key_exists() Argument #2 must be of type array, null given when trying to create a new iCal Import profile for Infolog

This commit is contained in:
ralf 2024-09-11 17:23:48 +02:00
parent bdf50616e9
commit 5d491cf313

View File

@ -62,7 +62,7 @@ class infolog_wizard_import_ical
$content['step'] = 'wizard_step55';
foreach(array('override_values') as $field)
{
if(!$content[$field] && array_key_exists($field, $content['plugin_options']))
if(empty($content[$field]) && !empty($content['plugin_options']) && array_key_exists($field, $content['plugin_options']))
{
$content[$field] = $content['plugin_options'][$field];
}
@ -76,4 +76,4 @@ class infolog_wizard_import_ical
return $this->step_templates[$content['step']];
}
}
}
}