[-] MO : #PSCFV-2539 - Module block newsletter don't show success error message correctly

This commit is contained in:
mDeflotte committed 2012-05-23 13:29:44 +00:00
1 parent e1dd1ab832
commit d1af3956f5
2 files changed
+13 -2

No files matched your search

+2 -2
View File
@@ -214,8 +214,8 @@ class Blocknewsletter extends Module
else if ($_POST['action'] == '0')
{
$register_status = $this->isNewsletterRegistered($_POST['email']);
//if ($register_status > 0)
// return $this->error = $this->l('E-mail address already registered');
if ($register_status > 0)
return $this->error = $this->l('E-mail address already registered');
$email = pSQL($_POST['email']);
if (!$this->isRegistered($register_status))