fixing logging status records
This commit is contained in:
parent
17c7f3b3c3
commit
d6ff7bfbda
|
@ -213,10 +213,6 @@ class Status {
|
||||||
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(psm_get_conf('log_status')) {
|
if(psm_get_conf('log_status')) {
|
||||||
psm_add_log(
|
psm_add_log(
|
||||||
|
@ -226,6 +222,10 @@ class Status {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!$notify) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// check if email is enabled for this server
|
// check if email is enabled for this server
|
||||||
if(psm_get_conf('email_status') && $this->server['email'] == 'yes') {
|
if(psm_get_conf('email_status') && $this->server['email'] == 'yes') {
|
||||||
// send email
|
// send email
|
||||||
|
|
Loading…
Reference in New Issue