Skip to content

Commit

Permalink
[-] BO : fixed infinite loop in the categories #PSCFV-8965
Browse files Browse the repository at this point in the history
  • Loading branch information
Damien Metzger committed May 2, 2013
1 parent e67965e commit 87be8bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/admin/AdminCategoriesController.php
Expand Up @@ -146,7 +146,7 @@ public function init()
if (Shop::isFeatureActive() && Shop::getContext() != Shop::CONTEXT_SHOP)
unset($this->fields_list['position']);
// shop restriction : if category is not available for current shop, we redirect to the list from default category
if (!$this->_category->isAssociatedToShop() && Shop::getContext() == Shop::CONTEXT_SHOP)
if (Validate::isLoadedObject($this->_category) && !$this->_category->isAssociatedToShop() && Shop::getContext() == Shop::CONTEXT_SHOP)
{
$this->redirect_after = self::$currentIndex.'&id_category='.(int)$this->context->shop->getCategory().'&token='.$this->token;
$this->redirect();
Expand Down

0 comments on commit 87be8bd

Please sign in to comment.