diff --git a/library/Director/Objects/IcingaObjectImports.php b/library/Director/Objects/IcingaObjectImports.php index 2f686444..d351c868 100644 --- a/library/Director/Objects/IcingaObjectImports.php +++ b/library/Director/Objects/IcingaObjectImports.php @@ -327,7 +327,8 @@ class IcingaObjectImports implements Iterator, Countable, IcingaConfigRenderer public static function loadForStoredObject(IcingaObject $object) { - return (new static($object))->loadFromDb(); + $obj = new static($object); + return $obj->loadFromDb(); } public function toConfigString()