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()
|
||||
{
|
||||
$this->modified = false;
|
||||
$this->storedVars = $this->vars;
|
||||
$this->storedVars = array();
|
||||
foreach ($this->vars as $key => $var) {
|
||||
$this->storedVars[$key] = clone($var);
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue