From 057c5bf6f7f2d69ae31dda3102c963251c95e9f0 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 7 Dec 2021 08:33:12 +0200 Subject: [PATCH] fix PHP 8.0 TypeError: array_key_exists(): Argument #2 ($array) must be of type array, bool given --- calendar/inc/class.calendar_ui.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; }