From eb50bed683b720e85816ec401316d0ac1b5e3060 Mon Sep 17 00:00:00 2001 From: Phoenix Eve Aspacio Date: Mon, 22 Oct 2018 21:58:35 +0800 Subject: [PATCH] fixes some errors --- files/php/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/php/functions.inc.php b/files/php/functions.inc.php index 8f8e05a..5cfe606 100644 --- a/files/php/functions.inc.php +++ b/files/php/functions.inc.php @@ -110,7 +110,7 @@ function complete_url($url, $proxify = true) $GLOBALS['_base']['host'] = empty($GLOBALS['_base']['host']) ? $BASE_ORIGIN['host'] : $GLOBALS['_base']['host']; if ($sep_pos === false || $sep_pos > 5) { - switch ($url{0}) { + switch ($url[0]) { case '/': $url = substr($url, 0, 2) === '//' ? $GLOBALS['_base']['scheme'] . ':' . $url : $GLOBALS['_base']['scheme'] . '://' . $GLOBALS['_base']['host'] . $GLOBALS['_base']['port_ext'] . $url; break;