X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/582bcea8035519f2b93be44023ec2cd032ef2504..7f94d3c91c405b7c5324b8b07cc8c66fabc40b77:/cron.php 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);