mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2026-05-28 04:35:53 -04:00
CustomVariables: fix internal isset magic
This commit is contained in:
parent
2ff9c15474
commit
4803e11b49
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue