CustomVariables: clone values on set...
...just to be on the safe side
This commit is contained in:
parent
e3d38f718f
commit
febd44a318
|
@ -67,7 +67,9 @@ class CustomVariables implements Iterator, Countable, IcingaConfigRenderer
|
|||
{
|
||||
$key = (string) $key;
|
||||
|
||||
if (! $value instanceof CustomVariable) {
|
||||
if ($value instanceof CustomVariable) {
|
||||
$value = clone($value);
|
||||
} else {
|
||||
$value = CustomVariable::create($key, $value);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue