From 5d6993d445fe85c5ad1d3adc511ade8672708d8c Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Wed, 29 Nov 2017 15:39:52 +0100 Subject: Filter out invalid empty MX records (e.g. for bluwin.ch) --- it_mail.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3