//improvement of the code to verify the group name

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12140 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mBertholino
2012-01-04 15:05:18 +00:00
parent 3adb20e946
commit 184a0a8d68
2 changed files with 1 additions and 4 deletions
@@ -256,9 +256,6 @@ class AdminGroupShopControllerCore extends AdminController
public function postProcess()
{
if (Tools::isSubmit('submitAdd'.$this->table))
if (!isset($_POST['name']) || empty($_POST['name']))
$this->_errors[] = Tools::displayError('A group name is required.');
if (Tools::isSubmit('delete'.$this->table) || Tools::isSubmit('status') || Tools::isSubmit('status'.$this->table))
{
$object = $this->loadObject();