mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2026-05-28 04:35:53 -04:00
CustomVariables: clone values on set...
...just to be on the safe side
This commit is contained in:
parent
e3d38f718f
commit
febd44a318
1 changed files with 3 additions and 1 deletions
|
|
@ -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 a new issue