TemplateTree: make sure we are ready, even when...
...our very first object is unstored
This commit is contained in:
parent
6ba0e8e924
commit
f00473777e
|
@ -141,6 +141,7 @@ class TemplateTree
|
|||
|
||||
protected function getAncestorsForUnstoredObject(IcingaObject $object)
|
||||
{
|
||||
$this->requireTree();
|
||||
$names = $object->imports()->listImportNames();
|
||||
$ancestors = [];
|
||||
foreach ($names as $name) {
|
||||
|
|
Loading…
Reference in New Issue