mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
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);
|
$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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user