瀏覽代碼

Use !empty in the if statement

FusionPBX 2 年之前
父節點
當前提交
343be547e0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      resources/classes/domains.php

+ 1 - 1
resources/classes/domains.php

@@ -486,7 +486,7 @@ if (!class_exists('domains')) {
 				}
 
 			//get the domains settings
-				if (is_uuid($_SESSION["domain_uuid"])) {
+				if (!empty($_SESSION["domain_uuid"]) && is_uuid($_SESSION["domain_uuid"])) {
 
 					//get settings from the database
 					$sql = "select * from v_domain_settings ";