Web\UrlParams: allow to merge single value
This commit is contained in:
parent
51366e2c22
commit
33d2175b77
|
@ -181,6 +181,9 @@ class UrlParams
|
|||
$this->set($k, $v);
|
||||
}
|
||||
} else {
|
||||
if (! is_array($values)) {
|
||||
$values = array($values);
|
||||
}
|
||||
foreach ($values as $value) {
|
||||
$this->set($param, $value);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue