bug in status updater causing it to log all status checks instead of

when notification settings are met
This commit is contained in:
Pepijn Over 2014-03-24 20:15:53 +01:00
parent bcfa168389
commit 437939736f
1 changed files with 4 additions and 4 deletions

View File

@ -144,6 +144,10 @@ class StatusNotifier {
break;
}
if(!$notify) {
return false;
}
// first add to log (we use the same text as the SMS message because its short..)
if($this->save_logs) {
psm_add_log(
@ -153,10 +157,6 @@ class StatusNotifier {
);
}
if(!$notify) {
return false;
}
// check if email is enabled for this server
if($this->send_emails && $this->server['email'] == 'yes') {
// send email