fixing logging status records

This commit is contained in:
Pepijn Over 2014-02-08 21:53:50 +01:00
parent 17c7f3b3c3
commit d6ff7bfbda
1 changed files with 4 additions and 4 deletions

View File

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