Merge branch 'develop' of gitlab.antadis.net:dev-antadis/bebeboutik into develop

This commit is contained in:
Christophe Latour 2017-11-23 11:11:02 +01:00
commit fb5ccd4e58

View File

@ -84,6 +84,13 @@ if($canSendInvitations) {
foreach ($friendsEmail AS $key => $friendEmail) { foreach ($friendsEmail AS $key => $friendEmail) {
$friendEmail = strval($friendEmail); $friendEmail = strval($friendEmail);
$friendEmail = trim($friendEmail); $friendEmail = trim($friendEmail);
/** @Override Antadis - mail fixing */
$friendEmail = str_replace(array('@hotmil.','@htmail.','@hotmal.','@hotml.','@hotmai.'),'@hotmail.',$friendEmail);
$friendEmail = str_replace(array('@gmal.','@gail.','@gml.','@gmai.','@gmil.'),'@gmail.',$friendEmail);
$friendEmail = str_replace('@gmailcom','@gmail.com',$friendEmail);
$friendEmail = str_replace('@hotmailcom','@hotmail.com',$friendEmail);
$friendEmail = str_replace('@hotmailfr','@hotmail.fr',$friendEmail);
/** @End Override Antadis - mail fixing */
if($askName) { if($askName) {
$friendLastName = strval($friendsLastName[$key]); $friendLastName = strval($friendsLastName[$key]);
$friendFirstName = strval($friendsFirstName[$key]); $friendFirstName = strval($friendsFirstName[$key]);