瀏覽代碼

Update pdo.php

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

+ 1 - 1
resources/pdo.php

@@ -283,7 +283,7 @@ if ($db_type == "odbc") {
 } //end if db_type pgsql
 } //end if db_type pgsql
 
 
 //get the domain list
 //get the domain list
-	if (!is_array($_SESSION['domains']) or !isset($_SESSION["domain_uuid"])) {
+	if (empty($_SESSION['domains']) or empty($_SESSION["domain_uuid"])) {
 
 
 		//get the domain
 		//get the domain
 			$domain_array = explode(":", $_SERVER["HTTP_HOST"] ?? '');
 			$domain_array = explode(":", $_SERVER["HTTP_HOST"] ?? '');