From d6ff7bfbda2241c8cab5144601b4a1fef1a1bf00 Mon Sep 17 00:00:00 2001 From: Pepijn Over Date: Sat, 8 Feb 2014 21:53:50 +0100 Subject: [PATCH] fixing logging status records --- src/psm/Util/Updater/Status.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/psm/Util/Updater/Status.class.php b/src/psm/Util/Updater/Status.class.php index 38cc671a..0b6b0c94 100755 --- a/src/psm/Util/Updater/Status.class.php +++ b/src/psm/Util/Updater/Status.class.php @@ -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