IcingaObjectImports: fix compatibility issue

fixes #12951
This commit is contained in:
Thomas Gelf 2016-10-20 19:17:52 +00:00
parent b62b602f7d
commit a9b3b2f47a
1 changed files with 2 additions and 1 deletions

View File

@ -327,7 +327,8 @@ class IcingaObjectImports implements Iterator, Countable, IcingaConfigRenderer
public static function loadForStoredObject(IcingaObject $object) public static function loadForStoredObject(IcingaObject $object)
{ {
return (new static($object))->loadFromDb(); $obj = new static($object);
return $obj->loadFromDb();
} }
public function toConfigString() public function toConfigString()