From e6039e39ac2d28ab329a4d17c99a5984881c797c Mon Sep 17 00:00:00 2001 From: edward Date: Thu, 14 Jul 2016 13:23:47 +0800 Subject: [PATCH] NotifySmtpCheck.php --- NotifySmtpCheck.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; -- 2.39.2