[-] BO : fixed bug #PSCFV-3352

This commit is contained in:
vAugagneur
2012-07-26 13:03:54 +00:00
parent a97e9530a2
commit 4e62d9d463
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;