Browse Source

PDO: Fix PHP 8.x issue on explode function.

fusionate 2 years ago
parent
commit
b19163db7b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      resources/pdo.php

+ 1 - 1
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";