Kaynağa Gözat

Change the and to an or and add an isset

FusionPBX 2 yıl önce
ebeveyn
işleme
ce4153027d
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      resources/check_auth.php

+ 1 - 1
resources/check_auth.php

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