From 7f94d3c91c405b7c5324b8b07cc8c66fabc40b77 Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Sat, 28 Jul 2018 14:13:15 +0000 Subject: [PATCH] Fixed a bug when reports where still sent with disabled Notifications. --- WEB-INF/templates/footer.tpl | 2 +- cron.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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); -- 2.20.1