Fix PHP 8.x error when getUrl() is called with weird parameters

This commit is contained in:
Kijin Sung 2022-09-05 16:28:20 +09:00
parent aa78a03b99
commit 3adcbb3528

View file

@ -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();