[-] BO : BugFix : #PSCFV-3554 : Class Category, Method calcLevelDepth: throw Exception

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16774 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vChabot committed 2012-08-09 12:52:19 +00:00
1 parent 4f99dfd2d6
commit 9939577f01
1 file changed
+1 -1
+1 -1
View File
@@ -365,7 +365,7 @@ class CategoryCore extends ObjectModel
$parent_category = new Category($this->id_parent); $parent_category = new Category($this->id_parent);
if (!Validate::isLoadedObject($parent_category)) if (!Validate::isLoadedObject($parent_category))
die('parent category does not exist'); throw new PrestaShopException('Parent category does not exist');
return $parent_category->level_depth + 1; return $parent_category->level_depth + 1;
} }