Fix email checking
This commit is contained in:
parent
451bb54c50
commit
0f07c1ab38
@ -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', [
|
||||
|
Loading…
Reference in New Issue
Block a user