Change the and to an or and add an isset

This commit is contained in:
FusionPBX 2023-05-10 22:11:01 -06:00 committed by GitHub
parent b86cd20e8e
commit 442147391c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@
if (!isset($_SESSION['template_content'])) { $_SESSION["template_content"] = null; }
//if the session is not authorized then verify the identity
if (!isset($_SESSION['authorized']) && !$_SESSION['authorized']) {
if (!isset($_SESSION['authorized']) || (isset($_SESSION['authorized']) && !$_SESSION['authorized'])) {
//clear the menu
unset($_SESSION["menu"]);