From 97f25afef7671af77fda032ef40aa7ea82076c99 Mon Sep 17 00:00:00 2001 From: daniel Date: Mon, 14 Aug 2023 13:25:37 +0200 Subject: [PATCH] fixed session pandora_enterprise#11884 --- pandora_console/include/functions_config.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php index c522cdee92..033b2067b6 100644 --- a/pandora_console/include/functions_config.php +++ b/pandora_console/include/functions_config.php @@ -4088,7 +4088,11 @@ function config_prepare_session() } if ($update_cookie === true) { - if ((int) $user['session_max_time_expire'] > 0 && time() < $user['session_max_time_expire']) { + if (isset($user) === true + && isset($user['session_max_time_expire']) === true + && (int) $user['session_max_time_expire'] > 0 + && time() < $user['session_max_time_expire'] + ) { $sessionMaxTimeout = $user['session_max_time_expire']; } else { $sessionMaxTimeout = (time() + $sessionCookieExpireTime);