CustomVariables: unset var if set to plain null
...but still allow for Null variables
This commit is contained in:
parent
56fece6a15
commit
c859055221
|
@ -77,6 +77,10 @@ class CustomVariables implements Iterator, Countable, IcingaConfigRenderer
|
|||
if ($value instanceof CustomVariable) {
|
||||
$value = clone($value);
|
||||
} else {
|
||||
if ($value === null) {
|
||||
$this->__unset($key);
|
||||
return $this;
|
||||
}
|
||||
$value = CustomVariable::create($key, $value);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue