fix of code style 2
This commit is contained in:
@@ -2925,9 +2925,7 @@ function isEmailAddressHostedInGmail($emailAddress) {
|
|||||||
|
|
||||||
if (preg_match($gmailDomainsRegExp, $emailAddress) == 1) {
|
if (preg_match($gmailDomainsRegExp, $emailAddress) == 1) {
|
||||||
$retval = TRUE;
|
$retval = TRUE;
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
$domainName = preg_split('/@/', $emailAddress)[1];
|
$domainName = preg_split('/@/', $emailAddress)[1];
|
||||||
|
|
||||||
foreach(getNamedServerMXRecord($domainName) as $emailServer) {
|
foreach(getNamedServerMXRecord($domainName) as $emailServer) {
|
||||||
@@ -2958,6 +2956,7 @@ function getNamedServerMXRecord($domainName) {
|
|||||||
return win_getmxrr($hostname, $mxhosts, $mxweight);
|
return win_getmxrr($hostname, $mxhosts, $mxweight);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$mailExchangerHosts = array();
|
$mailExchangerHosts = array();
|
||||||
getmxrr($domainName, $mailExchangerHosts);
|
getmxrr($domainName, $mailExchangerHosts);
|
||||||
return $mailExchangerHosts;
|
return $mailExchangerHosts;
|
||||||
|
|||||||
Reference in New Issue
Block a user