From d1af3956f5bfaaa9d7a314d6a7a4b23a7cfc6960 Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Wed, 23 May 2012 13:29:44 +0000 Subject: [PATCH] [-] MO : #PSCFV-2539 - Module block newsletter don't show success error message correctly --- modules/blocknewsletter/blocknewsletter.css | 11 +++++++++++ modules/blocknewsletter/blocknewsletter.php | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/modules/blocknewsletter/blocknewsletter.css b/modules/blocknewsletter/blocknewsletter.css index 7af9156b4..a81056517 100644 --- a/modules/blocknewsletter/blocknewsletter.css +++ b/modules/blocknewsletter/blocknewsletter.css @@ -12,6 +12,17 @@ } #newsletter_block_left p {padding:0;} +#newsletter_block_left p.success_inline { + color: #418B19; + text-align: center; + font-weight: bold; +} +#newsletter_block_left p.warning_inline { + color: #DA0F00; + text-align: center; + font-weight: bold; +} + #newsletter_block_left input.inputNew { position: relative; top: -1px; diff --git a/modules/blocknewsletter/blocknewsletter.php b/modules/blocknewsletter/blocknewsletter.php index 2eb581690..b621060b3 100644 --- a/modules/blocknewsletter/blocknewsletter.php +++ b/modules/blocknewsletter/blocknewsletter.php @@ -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))