mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Fix #2123 support nested arrays when getUrl() is used with array syntax
This commit is contained in:
parent
ac12bac141
commit
ff647d6701
1 changed files with 9 additions and 2 deletions
|
|
@ -1680,11 +1680,18 @@ class Context
|
|||
$get_vars = array();
|
||||
foreach ($args_list[0] as $key => $val)
|
||||
{
|
||||
$val = trim($val);
|
||||
if ($val !== '')
|
||||
if (is_array($val))
|
||||
{
|
||||
$get_vars[$key] = $val;
|
||||
}
|
||||
else
|
||||
{
|
||||
$val = trim(strval($val));
|
||||
if ($val !== '')
|
||||
{
|
||||
$get_vars[$key] = $val;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// Otherwise, use alternating members of $args_list as keys and values, respectively.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue