mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
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);
|
$this->set($k, $v);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if (! is_array($values)) {
|
||||||
|
$values = array($values);
|
||||||
|
}
|
||||||
foreach ($values as $value) {
|
foreach ($values as $value) {
|
||||||
$this->set($param, $value);
|
$this->set($param, $value);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user