diff --git a/module/tree/control.php b/module/tree/control.php index c0d32e3596..6f42b96547 100644 --- a/module/tree/control.php +++ b/module/tree/control.php @@ -243,7 +243,7 @@ class tree extends control if($showProduct) { $product = $this->loadModel('product')->getById($module->root); - $this->view->branches = $product->type != 'normal' ? $this->loadModel('branch')->getPairs($module->root, 'withClosed') : array(); + $this->view->branches = $product->type != 'normal' ? $this->loadModel('branch')->getPairs($module->root, 'withClosed') : array(0); $this->view->product = $product; $this->view->products = $this->product->getPairs('', $product->program); if($product->shadow) $showProduct = false;