Merge branch 'bug-1318' into testserver-stable
[cacert-devel.git] / includes / general.php
index ef94819..9727374 100644 (file)
                if(preg_match("/^([a-zA-Z0-9])+([a-zA-Z0-9\+\._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9\._-]+)+$/" , $email))
                {
                        list($username,$domain)=explode('@',$email,2);
-                       $mxhosts = array();
+                       $mxhostrr = array();
                        $mxweight = array();
                        if( !getmxrr($domain, $mxhostrr, $mxweight) ) {
                                $mxhostrr = array($domain);
                                $mx_host = trim($mxhostrr[$i], '.');
                                $mx_prio = $mxweight[$i];
                                if(empty($mxhostprio[$mx_prio])) {
-                                       $mxhostprio[$mx_prio] = arraY();
+                                       $mxhostprio[$mx_prio] = array();
                                }
                                $mxhostprio[$mx_prio][] = $mx_host;
                        }