CustomVariables: fix internal isset magic

This commit is contained in:
Thomas Gelf 2015-12-10 12:20:23 +01:00
parent 2ff9c15474
commit 4803e11b49
1 changed files with 2 additions and 1 deletions
library/Director/CustomVariable

View File

@ -71,7 +71,8 @@ class CustomVariables implements Iterator, Countable, IcingaConfigRenderer
$value = CustomVariable::create($key, $value); $value = CustomVariable::create($key, $value);
} }
if (isset($this->$key)) { // Hint: isset($this->$key) wouldn't conflict with protected properties
if ($this->__isset($key)) {
if ($value->equals($this->get($key))) { if ($value->equals($this->get($key))) {
return $this; return $this;
} else { } else {