Update pdo.php

This commit is contained in:
FusionPBX 2018-04-21 09:31:26 -06:00 committed by GitHub
parent 59d75656a2
commit 0fcffa2fea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -254,10 +254,12 @@ 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
$domain_array = explode(":", $_SERVER["HTTP_HOST"]);
//get the domains from the database
$sql = "select * from v_domains";
$prep_statement = $db->prepare($sql);