From ae98bcd86b53e467b16c3ee2a1e320eb91a6f420 Mon Sep 17 00:00:00 2001 From: rGaillard Date: Fri, 6 Dec 2013 18:40:44 +0100 Subject: [PATCH] // php warning --- controllers/front/CategoryController.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/controllers/front/CategoryController.php b/controllers/front/CategoryController.php index 7ea4fd6d6..466a68b4a 100644 --- a/controllers/front/CategoryController.php +++ b/controllers/front/CategoryController.php @@ -55,7 +55,7 @@ class CategoryControllerCore extends FrontController { if (Tools::getValue('live_edit')) return ; - if (!Validate::isLoadedObject($this->category) || !$this->category->inShop() || !$this->category->isAssociatedToShop()) + if (!Validate::isLoadedObject($this->category) || !$this->category->inShop() || !$this->category->isAssociatedToShop() || in_array($this->category->id, array(Configuration::get('PS_HOME_CATEGORY'), Configuration::get('PS_ROOT_CATEGORY')))) { $this->redirect_after = '404'; $this->redirect(); @@ -111,8 +111,7 @@ class CategoryControllerCore extends FrontController $this->assignScenes(); $this->assignSubcategories(); - if (!in_array($this->category->id, array(Configuration::get('PS_HOME_CATEGORY'), Configuration::get('PS_ROOT_CATEGORY')))) - $this->assignProductList(); + $this->assignProductList(); $this->context->smarty->assign(array( 'category' => $this->category,