From: edward Date: Thu, 14 Jul 2016 05:23:47 +0000 (+0800) Subject: NotifySmtpCheck.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=e6039e39ac2d28ab329a4d17c99a5984881c797c NotifySmtpCheck.php --- diff --git a/NotifySmtpCheck.php b/NotifySmtpCheck.php index 83d9fbaa..6333af5e 100644 --- a/NotifySmtpCheck.php +++ b/NotifySmtpCheck.php @@ -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;