From: anuko Date: Sat, 29 Jul 2017 18:21:15 +0000 (+0000) Subject: Fixed the problem when notifications stopped working after deleting a co-manager. X-Git-Tag: timetracker_1.19-1~1498 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/commitdiff_plain/4c3aa343fd0a7d708c69b0f22ae30259314427df Fixed the problem when notifications stopped working after deleting a co-manager. --- diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 694cf8ea..e1f260fd 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.11.46.3649 | Copyright © Anuko | +  Anuko Time Tracker 1.11.47.3650 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/cron.php b/cron.php index d7825461..cf5ac0dd 100644 --- a/cron.php +++ b/cron.php @@ -58,10 +58,12 @@ while ($val = $res->fetchRow()) { // Get favorite report details. $report = ttFavReportHelper::getReport($val['report_id']); - if (!$report) continue; + if (!$report) continue; // Skip not found report. - // Recycle global $user and $i18n objects, as user settings and language are specific for each report. + // Recycle global $user object, as user settings are specific for each report. $user = new ttUser(null, $report['user_id']); + if (!$user->id) continue; // Skip not found user. + // Recycle $i18n object because language is user-specific. $i18n->load($user->lang); // Check condition on a report.