diff --git a/module/product/model.php b/module/product/model.php index 0631a31a45..a5dc64c566 100644 --- a/module/product/model.php +++ b/module/product/model.php @@ -155,7 +155,6 @@ class productModel extends model if(empty($product)) $productID = key($products); $this->session->set('product', (int)$productID, $this->app->tab); if($productID && strpos(",{$this->app->user->view->products},", ",{$productID},") === false) $this->accessDenied(); - } setcookie('preProductID', (int)$productID, $this->config->cookieLife, $this->config->webRoot, '', $this->config->cookieSecure, true);