From: Nik Okuntseff Date: Sat, 28 Jul 2018 14:13:15 +0000 (+0000) Subject: Fixed a bug when reports where still sent with disabled Notifications. X-Git-Tag: timetracker_1.19-1~799 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=7f94d3c91c405b7c5324b8b07cc8c66fabc40b77;p=timetracker.git Fixed a bug when reports where still sent with disabled Notifications. --- diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 5b3bf4e7..028380aa 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.17.94.4293 | Copyright © Anuko | +  Anuko Time Tracker 1.17.95.4294 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/cron.php b/cron.php index 50d5d7cf..94a20dda 100644 --- a/cron.php +++ b/cron.php @@ -65,6 +65,10 @@ while ($val = $res->fetchRow()) { // Recycle global $user object, as user settings are specific for each report. $user = new ttUser(null, $options['user_id']); if (!$user->id) continue; // Skip not found user. + + // Skip users with disabled Notifications plugin. + if (!$user->isPluginEnabled('no')) continue; + // Recycle $i18n object because language is user-specific. $i18n->load($user->lang);