Skip to content

Commit

Permalink
// fix php compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
sfroment committed Jul 23, 2014
1 parent 5239234 commit 7ebc42c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/admin/AdminCategoriesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ public function renderList()
else
{
$categories_tree = $this->_category->getParentsCategories();
if (isset($categories_tree) && !Shop::isFeatureActive() && end($categories_tree)['id_parent'] != 0)
$end = end($categories_tree);
if (isset($categories_tree) && !Shop::isFeatureActive() && $end['id_parent'] != 0)
$categories_tree = array_merge($categories_tree, array(get_object_vars($this->_category->getTopCategory())));
}

Expand Down

0 comments on commit 7ebc42c

Please sign in to comment.