From af924842214c949ca027646e3cc76a58f8e75a7c Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Tue, 13 Sep 2022 19:49:52 +0900 Subject: [PATCH] Revert "Fix PHP 8.x error when getUrl() is called with weird parameters" This reverts commit 3adcbb3528899beb0cf7826cbe45e2704ddeb7d8. --- classes/context/Context.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/context/Context.class.php b/classes/context/Context.class.php index dc5777e0f..82bb6c9d8 100644 --- a/classes/context/Context.class.php +++ b/classes/context/Context.class.php @@ -1651,7 +1651,7 @@ class Context } // If the first argument is '', reset existing parameters. - if (isset($args_list[0]) && !is_array($args_list[0]) && strval($args_list[0]) === '') + if (!is_array($args_list[0]) && strval($args_list[0]) === '') { array_shift($args_list); $get_vars = array();