git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7532 b9a71923-0436-4b27-9f14-aed3839534dd

This commit is contained in:
rMalie
2011-07-06 13:54:12 +00:00
parent d218264667
commit 8ed089decf
+2 -2
View File
@@ -67,9 +67,9 @@ class AdminShop extends AdminTab
public function postProcess() public function postProcess()
{ {
if (Tools::isSubmit('delete'.$this->table) OR Tools::isSubmit('status') OR Tools::isSubmit('status'.$this->table)) if (Tools::isSubmit('delete'.$this->table) OR ((Tools::isSubmit('status') OR Tools::isSubmit('status'.$this->table)) && $this->loadObject()->active))
{ {
if(Shop::getTotalShops() == 1) if (Shop::getTotalShops() == 1)
{ {
$this->_errors[] = Tools::displayError('You cannot delete or disable the last shop.'); $this->_errors[] = Tools::displayError('You cannot delete or disable the last shop.');
return false; return false;