diff --git a/library/Director/CustomVariable/CustomVariables.php b/library/Director/CustomVariable/CustomVariables.php index 80aa9bb1..4c5d490d 100644 --- a/library/Director/CustomVariable/CustomVariables.php +++ b/library/Director/CustomVariable/CustomVariables.php @@ -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 {