mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-24 10:27:52 +02:00
IcingaArguments: remove Argument set to null
This commit is contained in:
parent
5494ab29bd
commit
a29efe478c
@ -84,6 +84,10 @@ class IcingaArguments implements Iterator, Countable, IcingaConfigRenderer
|
||||
|
||||
public function set($key, $value)
|
||||
{
|
||||
if ($value === null) {
|
||||
return $this->remove($key);
|
||||
}
|
||||
|
||||
if ($value instanceof IcingaCommandArgument) {
|
||||
$argument = $value;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user