]> wagnertech.de Git - timetracker.git/blobdiff - cron.php
Fixed a bug when reports where still sent with disabled Notifications.
[timetracker.git] / cron.php
index 50d5d7cfbfdcc09fe817c6ca6fe1cd5da21f7ce5..94a20ddadfc77176bd8df549d6ed673bd6a293f6 100644 (file)
--- 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);