// BugFix : Encoding chars problems

This commit is contained in:
mDeflotte
2011-12-22 20:55:17 +00:00
parent 314878ff98
commit 23747be5eb
+3 -3
View File
@@ -356,7 +356,7 @@ class AuthControllerCore extends FrontController
if (!Validate::isEmail($email = Tools::getValue('email')) || empty($email))
$this->errors[] = Tools::displayError('Invalid e-mail address');
elseif (Customer::customerExists($email))
$this->errors[] = Tools::displayError('An account is already registered with this e-mail.');
$this->errors[] = Tools::displayError('An account is already registered with this e-mail.', false);
// Preparing customer
$customer = new Customer();
$_POST['lastname'] = Tools::getValue('customer_lastname');
@@ -482,7 +482,7 @@ class AuthControllerCore extends FrontController
if (!count($this->errors))
{
if (Customer::customerExists(Tools::getValue('email')))
$this->errors[] = Tools::displayError('An account is already registered with this e-mail, please fill in the password or request a new one.');
$this->errors[] = Tools::displayError('An account is already registered with this e-mail, please fill in the password or request a new one.', false);
if (Tools::isSubmit('newsletter'))
{
$customer->ip_registration_newsletter = pSQL(Tools::getRemoteAddr());
@@ -600,7 +600,7 @@ class AuthControllerCore extends FrontController
$this->errors[] = Tools::displayError('Invalid e-mail address');
elseif (Customer::customerExists($email))
{
$this->errors[] = Tools::displayError('An account is already registered with this e-mail, please fill in the password or request a new one.');
$this->errors[] = Tools::displayError('An account is already registered with this e-mail, please fill in the password or request a new one.', false);
$_POST['email'] = $_POST['email_create'];
unset($_POST['email_create']);
}