Url::add_url_parameter(): add support for empty array value
This commit is contained in:
parent
990a15957a
commit
7f6e677728
1 changed files with 2 additions and 0 deletions
|
@ -547,6 +547,8 @@ class Url {
|
|||
if (is_array($value)) {
|
||||
foreach($value as $v)
|
||||
$url = self :: add_url_parameter($url, $parameter."[]", $v);
|
||||
if (empty($value))
|
||||
$url = self :: add_url_parameter($url, $parameter, "");
|
||||
return $url;
|
||||
}
|
||||
if (strpos($url, '?') === false)
|
||||
|
|
Loading…
Reference in a new issue