* Change the die of the bug module to return print.

This commit is contained in:
tianshujie
2022-01-11 08:09:13 +08:00
parent 489c06ddb3
commit 1c28a0462f
2 changed files with 37 additions and 36 deletions
+1 -1
View File
@@ -149,7 +149,7 @@ class productModel extends model
public function saveState($productID, $products)
{
if($productID == 0 and $this->cookie->preProductID) $productID = $this->cookie->preProductID;
if($productID == 0 and $this->session->product == '') $productID = key($products);
if(($productID == 0 and $this->session->product == '') or !isset($products[$productID])) $productID = key($products);
$this->session->set('product', (int)$productID, $this->app->tab);
if(!isset($products[$this->session->product]))