diff --git a/resources/pdo.php b/resources/pdo.php index b11f54fed0..18b9fdf21d 100644 --- a/resources/pdo.php +++ b/resources/pdo.php @@ -286,7 +286,7 @@ if ($db_type == "odbc") { if (!is_array($_SESSION['domains']) or !isset($_SESSION["domain_uuid"])) { //get the domain - $domain_array = explode(":", $_SERVER["HTTP_HOST"]); + $domain_array = explode(":", $_SERVER["HTTP_HOST"] ?? ''); //get the domains from the database $sql = "select * from v_domains";