Skip to content

Commit 410db68

Browse files
committed
Error when using PHP 8.1 #1306
1 parent 5dc562d commit 410db68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adm_program/system/bootstrap/constants.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
define('HOST', isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVER_NAME'] . $port); // www.example.org:1234
5959
define('DOMAIN', strstr(HOST . ':', ':', true)); // www.example.org | www.myproxy.com
6060
}
61-
define('ADMIDIO_URL_PATH', parse_url($g_root_path, PHP_URL_PATH)); // /subfolder
61+
define('ADMIDIO_URL_PATH', is_null(parse_url($g_root_path, PHP_URL_PATH)) ? '' : parse_url($g_root_path, PHP_URL_PATH)); // /subfolder
6262

6363
// PATHS
6464
define('SERVER_PATH', realpath($_SERVER['DOCUMENT_ROOT'])); // /var/www

0 commit comments

Comments
 (0)