From 8ddbe07d3db26e091dacc0c1c741ff70cda68be5 Mon Sep 17 00:00:00 2001 From: fusionate Date: Mon, 8 May 2023 13:21:10 +0000 Subject: [PATCH] PDO: Fix PHP 8.x issue on explode function. --- resources/pdo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";