From 2639533cc1abd0900af42bab341787d1d50196e0 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Tue, 9 Feb 2021 12:05:59 +0100 Subject: [PATCH] Fixes --- pandora_console/ajax.php | 4 +- .../include/ajax/snmp_browser.ajax.php | 7 +- pandora_console/include/functions_html.php | 2 + pandora_console/include/functions_modules.php | 2 + .../include/functions_snmp_browser.php | 64 +++++++++++++++---- .../operation/snmpconsole/snmp_browser.php | 1 - 6 files changed, 62 insertions(+), 18 deletions(-) diff --git a/pandora_console/ajax.php b/pandora_console/ajax.php index 9c68547b60..9b59695555 100644 --- a/pandora_console/ajax.php +++ b/pandora_console/ajax.php @@ -148,7 +148,9 @@ if (__PAN_XHPROF__ === 1) { } -if ($config['force_instant_logout'] === true) { +if (isset($config['force_instant_logout']) === true + && $config['force_instant_logout'] === true +) { // Force user logout. if (session_status() !== PHP_SESSION_ACTIVE) { session_start(); diff --git a/pandora_console/include/ajax/snmp_browser.ajax.php b/pandora_console/include/ajax/snmp_browser.ajax.php index 8b0928589c..8c10fdb16c 100644 --- a/pandora_console/include/ajax/snmp_browser.ajax.php +++ b/pandora_console/include/ajax/snmp_browser.ajax.php @@ -107,7 +107,7 @@ try { ); // Div for error/succes dialog. - $output .= ''; + $output = ''; // Dialog error. $output .= '