diff --git a/module/build/model.php b/module/build/model.php index 8e6d83c85b..b13c40eead 100644 --- a/module/build/model.php +++ b/module/build/model.php @@ -457,7 +457,7 @@ class buildModel extends model ->get(); $product = $this->loadModel('product')->getByID($build->product); - if(!empty($productgetBuildPairs) and $product->type != 'normal' and $this->post->isIntegrated == 'no' and !isset($_POST['branch'])) + if(!empty($product) and $product->type != 'normal' and !isset($_POST['branch'])) { $this->lang->product->branch = sprintf($this->lang->product->branch, $this->lang->product->branchName[$product->type]); dao::$errors['branch'] = sprintf($this->lang->error->notempty, $this->lang->product->branch);