[-] BO : fixed bug #PSCFV-3352

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16582 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vAugagneur
2012-07-26 13:03:54 +00:00
parent 0a30c492fd
commit db081565c3
3 changed files with 11 additions and 25 deletions
+3 -1
View File
@@ -1132,8 +1132,10 @@ class CategoryCore extends ObjectModel
* @param mixed $id_category_parent
* @return boolean true if succeed
*/
public static function cleanPositions($id_category_parent)
public static function cleanPositions($id_category_parent = null)
{
if ($id_category_parent === null)
return;
$return = true;
$id = Context::getContext()->shop->id;