diff --git a/library/Director/Objects/IcingaObject.php b/library/Director/Objects/IcingaObject.php index c4a73f77..0656fb27 100644 --- a/library/Director/Objects/IcingaObject.php +++ b/library/Director/Objects/IcingaObject.php @@ -2152,7 +2152,7 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer */ protected function renderLegacyGroups() { - if ($this->supportsGroups()) { + if ($this->supportsGroups() && $this->hasBeenLoadedFromDb()) { $applied = array(); if ($this instanceof IcingaHost) { $applied = $this->getAppliedGroups();