diff --git a/module/product/control.php b/module/product/control.php index 6f92f179c2..9995973fd8 100644 --- a/module/product/control.php +++ b/module/product/control.php @@ -211,7 +211,7 @@ class product extends control $product = $this->product->getById($productID); - if($product->type != 'normal') + if($product and $product->type != 'normal') { $this->app->loadLang('datatable'); $this->lang->datatable->showBranch = sprintf($this->lang->datatable->showBranch, $this->lang->product->branchName[$product->type]);