diff --git a/library/Director/CustomVariable/CustomVariableArray.php b/library/Director/CustomVariable/CustomVariableArray.php index bca1992c..4d6fbc9f 100644 --- a/library/Director/CustomVariable/CustomVariableArray.php +++ b/library/Director/CustomVariable/CustomVariableArray.php @@ -12,7 +12,8 @@ class CustomVariableArray extends CustomVariable return false; } - return $var->getValue() === $this->getValue(); + // TODO: better var handlig, fix this + return $var->value === $this->value; } public function setValue($value) diff --git a/library/Director/IcingaConfig/IcingaConfig.php b/library/Director/IcingaConfig/IcingaConfig.php index 99d131f8..d636d9ef 100644 --- a/library/Director/IcingaConfig/IcingaConfig.php +++ b/library/Director/IcingaConfig/IcingaConfig.php @@ -35,6 +35,7 @@ class IcingaConfig ->createFileFromDb('service') ->createFileFromDb('user') ; + return $this; }