fix of code style 2

This commit is contained in:
Dante
2015-11-17 09:24:08 -04:00
parent 537791595c
commit 3b10f3dcf4

View File

@@ -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;