Skip to content

Commit

Permalink
//Fix d81b70a - category must be an object, not an array
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Biloé committed Oct 22, 2015
1 parent b6126cd commit 21ba323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/Category.php
Expand Up @@ -1386,7 +1386,7 @@ public function updatePosition($way, $position)
c.`date_upd` = "'.date('Y-m-d H:i:s').'"
WHERE c.`id_parent` = '.(int)$moved_category['id_parent'].'
AND c.`id_category`='.(int)$moved_category['id_category']));
Hook::exec('actionCategoryUpdate', array('category' => $moved_category));
Hook::exec('actionCategoryUpdate', array('category' => new Category($moved_category['id_category'])));

This comment has been minimized.

Copy link
@vTerenti

vTerenti Oct 23, 2015

Contributor

Why don't we sent $this ?

Hook::exec('actionCategoryUpdate', array('category' => $this));
return $result;
}

Expand Down

0 comments on commit 21ba323

Please sign in to comment.