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 .= '