mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 17:24:18 +02:00
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…
x
Reference in New Issue
Block a user