// Normalize

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12746 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-01-27 10:28:56 +00:00
parent b50321d328
commit d514b6dc9b
15 changed files with 223 additions and 231 deletions
+2 -2
View File
@@ -62,7 +62,7 @@ class Blocknewsletter extends Module
public function install()
{
if (parent::install() == false OR $this->registerHook('leftColumn') == false OR $this->registerHook('header') == false)
if (parent::install() == false || $this->registerHook('leftColumn') == false || $this->registerHook('header') == false)
return false;
Configuration::updateValue('NW_SALT', Tools::passwdGen(16));
@@ -188,7 +188,7 @@ class Blocknewsletter extends Module
*/
private function newsletterRegistration()
{
if (empty($_POST['email']) OR !Validate::isEmail($_POST['email']))
if (empty($_POST['email']) || !Validate::isEmail($_POST['email']))
return $this->error = $this->l('Invalid e-mail address');
/* Unsubscription */