diff --git a/is_email.php b/is_email.php index 21e0629..c708bcd 100755 --- a/is_email.php +++ b/is_email.php @@ -1120,7 +1120,7 @@ $return_status[] = ISEMAIL_DNSWARN_NO_MX_RECORD; // MX-record for domain can't be found $result = @dns_get_record($parsedata[ISEMAIL_COMPONENT_DOMAIN], DNS_A + DNS_CNAME); - if (count($result) === 0) + if (($result === false) || (count($result) === 0)) $return_status[] = ISEMAIL_DNSWARN_NO_RECORD; // No usable records for the domain can be found } else $dns_checked = true; }