From 6b863fe940284bbcb2f4ce73b92dc21c858ad569 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Mon, 19 Mar 2018 12:27:57 +0100 Subject: [PATCH] Fix --- modules/invite/invite-program.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/invite/invite-program.php b/modules/invite/invite-program.php index 677df232..0b7ffacb 100644 --- a/modules/invite/invite-program.php +++ b/modules/invite/invite-program.php @@ -164,15 +164,15 @@ if($canSendInvitations) { $tld = substr($friendEmail, $pointPos + 1); $sld = substr($friendEmail, $atPos + 1, strlen($friendEmail) - ($atPos+1) - (strlen($tld)+1) ); if (empty($tld)) { - $this->errors[] = Tools::displayError('Invalid email'); + $errors[] = Tools::displayError('Invalid email'); $_POST['friendsEmail'] = ''; } - if (empty($this->errors)) { + if (empty($errors)) { // If you have a complete list of TLD, check it ! } // Check SLD - if (empty($this->errors)) { + if (empty($errors)) { // Real use case replacement $friendEmail = strtr($friendEmail, $replaceSLD); // Levenhstein remplacement