mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-21 12:54:26 +02:00
CustomVariables: clone vars, may not suffice
This commit is contained in:
parent
f4e992f6da
commit
43fc6fc42b
@ -174,7 +174,10 @@ class CustomVariables implements Iterator, Countable, IcingaConfigRenderer
|
|||||||
public function setUnmodified()
|
public function setUnmodified()
|
||||||
{
|
{
|
||||||
$this->modified = false;
|
$this->modified = false;
|
||||||
$this->storedVars = $this->vars;
|
$this->storedVars = array();
|
||||||
|
foreach ($this->vars as $key => $var) {
|
||||||
|
$this->storedVars[$key] = clone($var);
|
||||||
|
}
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user