From 4c3aa343fd0a7d708c69b0f22ae30259314427df Mon Sep 17 00:00:00 2001 From: anuko Date: Sat, 29 Jul 2017 18:21:15 +0000 Subject: [PATCH] Fixed the problem when notifications stopped working after deleting a co-manager. --- WEB-INF/templates/footer.tpl | 2 +- cron.php | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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. -- 2.20.1