// Refactor AdminController::_errors to errors

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12331 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2012-01-11 08:58:12 +00:00
parent 3b5be15831
commit ad1fd29cea
68 changed files with 857 additions and 859 deletions
@@ -260,11 +260,11 @@ class AdminGroupShopControllerCore extends AdminController
{
$object = $this->loadObject();
if (GroupShop::getTotalGroupShops() == 1)
$this->_errors[] = Tools::displayError('You cannot delete or disable the last groupshop.');
$this->errors[] = Tools::displayError('You cannot delete or disable the last groupshop.');
else if ($object->haveShops())
$this->_errors[] = Tools::displayError('You cannot delete or disable a groupshop which have this shops using it.');
$this->errors[] = Tools::displayError('You cannot delete or disable a groupshop which have this shops using it.');
if (count($this->_errors))
if (count($this->errors))
return false;
}
return parent::postProcess();