Url::add_url_parameter(): add support for empty array value

This commit is contained in:
Benjamin Renard 2024-12-02 14:57:30 +01:00
parent 990a15957a
commit 7f6e677728
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC

View file

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