projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c01fe6
)
NotifySmtpCheck.php
author
edward
<edward@roojs.com>
Thu, 14 Jul 2016 05:52:06 +0000
(13:52 +0800)
committer
edward
<edward@roojs.com>
Thu, 14 Jul 2016 05:52:06 +0000
(13:52 +0800)
NotifySmtpCheck.php
patch
|
blob
|
history
diff --git
a/NotifySmtpCheck.php
b/NotifySmtpCheck.php
index
666197a
..
29ddab1
100644
(file)
--- a/
NotifySmtpCheck.php
+++ b/
NotifySmtpCheck.php
@@
-10,9
+10,16
@@
class Pman_Core_NotifySmtpCheck extends Pman
{
$ff = HTML_FlexyFramework::get();
+ if(
+ empty($ff->Core_Notify) ||
+ empty($ff->Core_Notify['routes'])
+ ){
+ return;
+ }
+
$helo = $this->getHelo();
- $error = array();
+ $error = array(
'test'
);
foreach ($ff->Core_Notify['routes'] as $server => $settings){
if(empty($settings['domains']) || empty($settings['username']) || empty($settings['password'])){
@@
-46,7
+53,11
@@
class Pman_Core_NotifySmtpCheck extends Pman
}
}
- return $error;
+ if(!empty($error)){
+ die($error);
+ }
+
+ return;
}
function getHelo()