bug 1318: Request the array containing the priorities to sort entries propoerly
authorBenny Baumann <BenBE@geshi.org>
Sat, 29 Nov 2014 13:50:31 +0000 (14:50 +0100)
committerBenny Baumann <BenBE@geshi.org>
Sat, 29 Nov 2014 13:50:31 +0000 (14:50 +0100)
includes/general.php

index 4e57d3c..64322aa 100644 (file)
                        list($username,$domain)=explode('@',$email,2);
                        $mxhosts = array();
                        $mxweight = array();
-                       if( !getmxrr($domain, $mxhosts) ) {
+                       if( !getmxrr($domain, $mxhosts, $mxweight) ) {
                                $mxhostrr = array($domain);
                                $mxweight = array(0);
                        } else if ( !empty($mxhosts) ) {