X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=cron.php;h=eabcaa05cde044892ad394f06ce28342aafc8543;hb=a711e76851f29c7e0ac290a279eb4dd984ea7167;hp=50d5d7cfbfdcc09fe817c6ca6fe1cd5da21f7ce5;hpb=582bcea8035519f2b93be44023ec2cd032ef2504;p=timetracker.git diff --git a/cron.php b/cron.php index 50d5d7cf..eabcaa05 100644 --- a/cron.php +++ b/cron.php @@ -65,6 +65,17 @@ 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. + + // TODO: write a new function ttFavReportHelper::adjustOptions that will use + // a $user object recycled above. Put user handling below into it. + // Also adjust remaining options for potentially changed user access rights and group properties. + // For example, tracking mode may have changed, but fav report options are still old... + // This needs to be fixed. + $options = ttFavReportHelper::adjustOptions($options); + + // Skip users with disabled Notifications plugin. + if (!$user->isPluginEnabled('no')) continue; + // Recycle $i18n object because language is user-specific. $i18n->load($user->lang);