diff --git a/calendar/inc/class.calendar_ui.inc.php b/calendar/inc/class.calendar_ui.inc.php index ea0fb14378..b5beacffda 100644 --- a/calendar/inc/class.calendar_ui.inc.php +++ b/calendar/inc/class.calendar_ui.inc.php @@ -597,7 +597,7 @@ class calendar_ui // App might have multiple hooks, let it specify something else $app = $data['selects']['app'] ?: $app; - if(array_key_exists('sidebox_template', $data)) + if (is_array($data) && array_key_exists('sidebox_template', $data)) { $cont['integration'][] = ['template' => $data['sidebox_template'], 'app' => $app]; }