NotifySmtpCheck.php
authoredward <edward@roojs.com>
Thu, 14 Jul 2016 05:23:47 +0000 (13:23 +0800)
committeredward <edward@roojs.com>
Thu, 14 Jul 2016 05:23:47 +0000 (13:23 +0800)
NotifySmtpCheck.php

index 83d9fba..6333af5 100644 (file)
@@ -33,8 +33,13 @@ class Pman_Core_NotifySmtpCheck extends Pman
         
         $xpath = new DOMXPath($dom);
         
-        $lists = $xpath->query("//code[@class='ip']");
+        $element = $xpath->query("//code[@class='ip']");
         
+        if(!$element->length){
+            return;
+        }
+        
+        print_R($element->item(0));exit;
         
         print_R($lists);exit;