X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=cron.php;h=94a20ddadfc77176bd8df549d6ed673bd6a293f6;hb=1c55e1b9d6da2173f7e946011908c02dd80df26d;hp=50d5d7cfbfdcc09fe817c6ca6fe1cd5da21f7ce5;hpb=582bcea8035519f2b93be44023ec2cd032ef2504;p=timetracker.git 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);