diff --git a/module/build/control.php b/module/build/control.php index e394fc78d9..0892b88b44 100644 --- a/module/build/control.php +++ b/module/build/control.php @@ -321,11 +321,12 @@ class build extends control $this->executeHooks($buildID); $branchName = ''; + $this->loadModel('branch'); if($build->productType != 'normal') { foreach(explode(',', $build->branch) as $buildBranch) { - $branchName .= $this->loadModel('branch')->getById($buildBranch); + $branchName .= $buildBranch == 0 ? $this->lang->branch->main : $this->branch->getById($buildBranch); $branchName .= ','; } $branchName = trim($branchName, ',');