Merge pull request #12178 from frederic34/patch-18

Update functions2.lib.php
This commit is contained in:
Laurent Destailleur 2019-10-20 12:40:34 +02:00 committed by GitHub
commit 62a8523ccf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -505,14 +505,7 @@ function dolAddEmailTrackId($email, $trackingid)
function isValidMailDomain($mail)
{
list($user, $domain) = explode("@", $mail, 2);
if (checkdnsrr($domain, "MX"))
{
return true;
}
else
{
return false;
}
return checkdnsrr($domain, "MX");
}
/**