[-] FO: Fix #PSCFV-5143

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17916 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2012-10-23 08:29:24 +00:00
parent 666e2cc940
commit 016d7ab78e
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -376,7 +376,7 @@ class CategoryCore extends ObjectModel
if (!$this->id_parent)
return 0;
$parent_category = new Category($this->id_parent);
$parent_category = new Category((int)$this->id_parent);
if (!Validate::isLoadedObject($parent_category))
throw new PrestaShopException('Parent category does not exist');
return $parent_category->level_depth + 1;