diff --git a/controllers/front/ProductController.php b/controllers/front/ProductController.php index d55dc92b9..46aa593c9 100644 --- a/controllers/front/ProductController.php +++ b/controllers/front/ProductController.php @@ -158,7 +158,7 @@ class ProductControllerCore extends FrontController $this->category = new Category($regs[5], (int)$this->context->cookie->id_lang); } } - else + if ( ! isset($this->category)) // Set default product category $this->category = new Category($this->product->id_category_default, (int)$this->context->cookie->id_lang); }