From a4f2549acf0a412ad0a2b7f1ef78e4fc65d4578e Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 11 Sep 2024 17:23:48 +0200 Subject: [PATCH] fix array_key_exists() Argument #2 must be of type array, null given when trying to create a new iCal Import profile for Infolog --- infolog/inc/class.infolog_wizard_import_ical.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infolog/inc/class.infolog_wizard_import_ical.inc.php b/infolog/inc/class.infolog_wizard_import_ical.inc.php index 94b122826e..d5bed4c250 100644 --- a/infolog/inc/class.infolog_wizard_import_ical.inc.php +++ b/infolog/inc/class.infolog_wizard_import_ical.inc.php @@ -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']]; } } -} +} \ No newline at end of file