diff --git a/module/tree/model.php b/module/tree/model.php index 9a8e822e29..9cc649f947 100644 --- a/module/tree/model.php +++ b/module/tree/model.php @@ -1911,7 +1911,7 @@ class treeModel extends model if($self) { - if($type == 'host') $module->root = 0; + if($type == 'host' || !isset($module->root)) $module->root = 0; if($self->root && !isset($module->root)) $module->root = $self->root; if($self->parent != $module->parent || $self->root != $module->root) {