From 3adcbb3528899beb0cf7826cbe45e2704ddeb7d8 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Mon, 5 Sep 2022 16:28:20 +0900 Subject: [PATCH] Fix PHP 8.x error when getUrl() is called with weird parameters --- 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 82bb6c9d8..dc5777e0f 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 (!is_array($args_list[0]) && strval($args_list[0]) === '') + if (isset($args_list[0]) && !is_array($args_list[0]) && strval($args_list[0]) === '') { array_shift($args_list); $get_vars = array();