summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2017-11-29 15:39:52 +0100
committerChristian Schneider2017-11-29 15:39:52 +0100
commit5d6993d445fe85c5ad1d3adc511ade8672708d8c (patch)
tree28d227b92b15882e7959948c2cddd4187cd67eee
parent2ed7dd2d0b7756a5a3fa7b2cdf150537d3efc006 (diff)
downloaditools-5d6993d445fe85c5ad1d3adc511ade8672708d8c.tar.gz
itools-5d6993d445fe85c5ad1d3adc511ade8672708d8c.tar.bz2
itools-5d6993d445fe85c5ad1d3adc511ade8672708d8c.zip
Filter out invalid empty MX records (e.g. for bluwin.ch)
-rw-r--r--it_mail.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_mail.class b/it_mail.class
index ea63aba..26ba883 100644
--- a/it_mail.class
+++ b/it_mail.class
@@ -430,7 +430,7 @@ function check_email($email, $checkmailbox = true)
}
}
- if ($mxhosts) /* We need at least one valid MX */
+ if (array_filter($mxhosts)) /* We need at least one valid MX */
{
if ($checkmailbox)
{