From 2a33fd3830b1266eeaae81254fbbac2bfcf9a4f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=8D=8E=E4=BC=9F?= Date: Fri, 13 May 2022 17:32:26 +0800 Subject: [PATCH] *Fix bug. --- module/product/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/product/model.php b/module/product/model.php index df8afb5501..d7cc4528a7 100644 --- a/module/product/model.php +++ b/module/product/model.php @@ -157,7 +157,7 @@ class productModel extends model if(!isset($products[$this->session->product])) { $product = $this->getById($productID); - if(empty($product) or $product->delete == 1) $productID = key($products); + if(empty($product) or $product->deleted == 1) $productID = key($products); $this->session->set('product', (int)$productID, $this->app->tab); if($productID && strpos(",{$this->app->user->view->products},", ",{$productID},") === false) {