bug 1318: Fix a check for if there were any servers
authorBenny Baumann <BenBE@geshi.org>
Sat, 29 Nov 2014 13:58:20 +0000 (14:58 +0100)
committerBenny Baumann <BenBE@geshi.org>
Sat, 29 Nov 2014 13:58:20 +0000 (14:58 +0100)
includes/general.php

index 64322aa..065daaa 100644 (file)
                        if( !getmxrr($domain, $mxhosts, $mxweight) ) {
                                $mxhostrr = array($domain);
                                $mxweight = array(0);
                        if( !getmxrr($domain, $mxhosts, $mxweight) ) {
                                $mxhostrr = array($domain);
                                $mxweight = array(0);
-                       } else if ( !empty($mxhosts) ) {
+                       } else if ( empty($mxhosts) ) {
                                $mxhostrr = array($domain);
                                $mxweight = array(0);
                        }
                                $mxhostrr = array($domain);
                                $mxweight = array(0);
                        }