diff options
author | Christian Schneider | 2017-11-29 15:39:52 +0100 |
---|---|---|
committer | Christian Schneider | 2017-11-29 15:39:52 +0100 |
commit | 5d6993d445fe85c5ad1d3adc511ade8672708d8c (patch) | |
tree | 28d227b92b15882e7959948c2cddd4187cd67eee | |
parent | 2ed7dd2d0b7756a5a3fa7b2cdf150537d3efc006 (diff) | |
download | itools-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.class | 2 |
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) { |