fix stupid error in vars.inc.php (#8904)

This commit is contained in:
Tony Murray
2018-07-16 16:05:23 -05:00
committed by GitHub
parent 4bca036433
commit 2f681a3df3

View File

@@ -13,7 +13,7 @@ foreach ($_GET as $key => $get_var) {
$base_url = parse_url($config["base_url"]);
// don't parse the subdirectory, if there is one in the path
if (strlen($base_url["path"]) > 1) {
if (!empty($base_url["path"])) {
$segments = explode('/', trim(str_replace($base_url["path"], "", $_SERVER['REQUEST_URI']), '/'));
} else {
$segments = explode('/', trim($_SERVER['REQUEST_URI'], '/'));