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 0f99d2e794
commit a4f2549acf

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