[-] 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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user