diff --git a/library/Director/Objects/IcingaTemplateResolver.php b/library/Director/Objects/IcingaTemplateResolver.php index 31a913e8..10d3aca1 100644 --- a/library/Director/Objects/IcingaTemplateResolver.php +++ b/library/Director/Objects/IcingaTemplateResolver.php @@ -379,7 +379,10 @@ class IcingaTemplateResolver $parentNames = $object->imports; self::$nameIdx[$object->object_name] = $parentNames; if ($object->hasBeenLoadedFromDb()) { - self::$idIdx[$object->getId()] = $this->getIdsForNames($parentNames); + $id = $object->getId(); + if (! is_array($id)) { + self::$idIdx[$id] = $this->getIdsForNames($parentNames); + } } return $this; }