FusionPBX vor 7 Jahren
Ursprung
Commit
d2c14f15b5
1 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
  1. 4 2
      resources/pdo.php

+ 4 - 2
resources/pdo.php

@@ -254,10 +254,12 @@ if ($db_type == "pgsql") {
 	}
 	}
 } //end if db_type pgsql
 } //end if db_type pgsql
 
 
-//domain list
-	if ( ( !isset($_SESSION["domain_uuid"])) or (strlen($_SESSION["domain_uuid"]) == 0)) {
+//get the domain list
+	if (!is_array($_SESSION['domains']) or (!isset($_SESSION["domain_uuid"])) or (strlen($_SESSION["domain_uuid"]) == 0)) {
+
 		//get the domain
 		//get the domain
 			$domain_array = explode(":", $_SERVER["HTTP_HOST"]);
 			$domain_array = explode(":", $_SERVER["HTTP_HOST"]);
+
 		//get the domains from the database
 		//get the domains from the database
 			$sql = "select * from v_domains";
 			$sql = "select * from v_domains";
 			$prep_statement = $db->prepare($sql);
 			$prep_statement = $db->prepare($sql);