From 070d05d4a8ec2fe91bac884844f488e28fcb540b Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 22 Feb 2016 15:43:59 +0100 Subject: [PATCH] IcingaObject: ignore deleted vars for getVars This is used when resolving plain objects --- library/Director/Objects/IcingaObject.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/Director/Objects/IcingaObject.php b/library/Director/Objects/IcingaObject.php index d201dc86..8e27e1ed 100644 --- a/library/Director/Objects/IcingaObject.php +++ b/library/Director/Objects/IcingaObject.php @@ -401,6 +401,10 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer { $vars = (object) array(); foreach ($this->vars() as $key => $var) { + if ($var->hasBeenDeleted()) { + continue; + } + $vars->$key = $var->getValue(); }