[-] FO: Fix #PSCFV-5143

This commit is contained in:
rGaillard
2012-10-23 08:29:24 +00:00
parent 0eafc88cbd
commit 22b8a891cc
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;