bug in status updater causing it to log all status checks instead of
when notification settings are metpull/36/merge
parent
bcfa168389
commit
437939736f
|
@ -144,6 +144,10 @@ class StatusNotifier {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!$notify) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// first add to log (we use the same text as the SMS message because its short..)
|
// first add to log (we use the same text as the SMS message because its short..)
|
||||||
if($this->save_logs) {
|
if($this->save_logs) {
|
||||||
psm_add_log(
|
psm_add_log(
|
||||||
|
@ -153,10 +157,6 @@ class StatusNotifier {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!$notify) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// check if email is enabled for this server
|
// check if email is enabled for this server
|
||||||
if($this->send_emails && $this->server['email'] == 'yes') {
|
if($this->send_emails && $this->server['email'] == 'yes') {
|
||||||
// send email
|
// send email
|
||||||
|
|
Loading…
Reference in New Issue