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);