* fix error.

This commit is contained in:
wangyidong
2016-01-05 15:22:04 +08:00
parent 052a1d7a7c
commit a0d475720b
+1 -1
View File
@@ -43,7 +43,7 @@ class branchModel extends model
if(strpos($params, 'noempty') === false)
{
$product = $this->loadModel('product')->getById($productID);
if($product->type == 'normal') return array();
if(!$product or $product->type == 'normal') return array();
$branches = array('0' => $this->lang->branch->all . $this->lang->product->branchName[$product->type]) + $branches;
}