Fix email checking

This commit is contained in:
Alexandre Simonet 2016-02-25 10:55:05 +01:00
parent 451bb54c50
commit 0f07c1ab38

View File

@ -24,7 +24,7 @@ class Process
if (!$isCorrect) {
$errors[] = 'Tous les champs ne sont pas remplis';
} else {
if (!Validate::isEmail($tthis->data['email1']) || !(Validate::isEmail($tthis->data['email1']) && Validate::isEmail($tthis->data['email2']))) {
if (!Validate::isEmail($this->data['email1'])) {
$errors[] = 'Certains champs ne sont pas valide';
} else {
$query = Db::getInstance()->autoExecute(_DB_PREFIX_.'contactform', [
@ -76,7 +76,7 @@ class Process
if (!$isCorrect) {
$errors[] = 'Tous les champs ne sont pas remplis';
} else {
if (!Validate::isEmail($tthis->data['email1']) || !(Validate::isEmail($tthis->data['email1']) && Validate::isEmail($tthis->data['email2']))) {
if (!Validate::isEmail($this->data['email1'])) {
$errors[] = 'Certains champs ne sont pas valide';
} else {
$query = Db::getInstance()->autoExecute(_DB_PREFIX_.'contactform', [