fixing logging status records
parent
17c7f3b3c3
commit
d6ff7bfbda
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue