CustomVariables: fix internal isset magic
This commit is contained in:
parent
2ff9c15474
commit
4803e11b49
|
@ -71,7 +71,8 @@ class CustomVariables implements Iterator, Countable, IcingaConfigRenderer
|
|||
$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))) {
|
||||
return $this;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue