From 746c74dfac49033a00beefdab7d7c0cc6efb6e8b Mon Sep 17 00:00:00 2001 From: rGaillard Date: Fri, 6 Dec 2013 18:34:50 +0100 Subject: [PATCH] // id of root category could be different of 1 --- controllers/front/CategoryController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/front/CategoryController.php b/controllers/front/CategoryController.php index 78eb76b2d..7ea4fd6d6 100644 --- a/controllers/front/CategoryController.php +++ b/controllers/front/CategoryController.php @@ -111,7 +111,7 @@ class CategoryControllerCore extends FrontController $this->assignScenes(); $this->assignSubcategories(); - if ($this->category->id != 1) + if (!in_array($this->category->id, array(Configuration::get('PS_HOME_CATEGORY'), Configuration::get('PS_ROOT_CATEGORY')))) $this->assignProductList(); $this->context->smarty->assign(array(