From f8eebdf67860c9be1d0563df7a70f1b0ac32295f Mon Sep 17 00:00:00 2001 From: mayue Date: Thu, 11 Nov 2021 16:08:03 +0800 Subject: [PATCH] * Fix bug #16191. --- module/product/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]);