fix missing mx records.
authorAlan <alan@roojs.com>
Wed, 9 Aug 2023 09:11:04 +0000 (17:11 +0800)
committerAlan <alan@roojs.com>
Wed, 9 Aug 2023 09:11:04 +0000 (17:11 +0800)
NotifySend.php

index 9e3db9f..eab01a9 100644 (file)
@@ -617,7 +617,9 @@ class Pman_Core_NotifySend extends Pman
         asort($mx_weight,SORT_NUMERIC);
         
         foreach($mx_weight as $k => $weight) {
-            $mxs[] = $mx_records[$k];
+            if (!empty($mx_records[$k])) {
+                $mxs[] = $mx_records[$k];
+            }
         }
         return $mxs;
     }