From b840032589eeba34b9b108e8a89fb00792e50799 Mon Sep 17 00:00:00 2001 From: rGaillard Date: Thu, 23 Aug 2012 10:02:57 +0000 Subject: [PATCH] // Small fix git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16964 b9a71923-0436-4b27-9f14-aed3839534dd --- controllers/admin/AdminCategoriesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/admin/AdminCategoriesController.php b/controllers/admin/AdminCategoriesController.php index 666ee8409..43c14e03c 100644 --- a/controllers/admin/AdminCategoriesController.php +++ b/controllers/admin/AdminCategoriesController.php @@ -303,7 +303,7 @@ class AdminCategoriesControllerCore extends AdminController $this->initToolbar(); $obj = $this->loadObject(true); $id_shop = Context::getContext()->shop->id; - $selected_cat = array((isset($obj->id_parent) && $obj->isParentCategoryAvailable($id_shop))? $obj->id_parent : Tools::getValue('id_parent', Category::getRootCategory()->id)); + $selected_cat = array((isset($obj->id_parent) && $obj->isParentCategoryAvailable($id_shop))? (int)$obj->id_parent : (int)Tools::getValue('id_parent', Category::getRootCategory()->id)); $unidentified = new Group(Configuration::get('PS_UNIDENTIFIED_GROUP')); $guest = new Group(Configuration::get('PS_GUEST_GROUP')); $default = new Group(Configuration::get('PS_CUSTOMER_GROUP'));