From 6b99947702d9c356a300d86eb696916ad77bca71 Mon Sep 17 00:00:00 2001 From: anuko Date: Mon, 31 Jul 2017 15:06:48 +0000 Subject: [PATCH] A fix for broken cron.php - not updating the correct entry for . --- WEB-INF/templates/footer.tpl | 2 +- cron.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index dbaf8b11..f6c10dbd 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.11.47.3652 | Copyright © Anuko | +  Anuko Time Tracker 1.11.48.3653 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/cron.php b/cron.php index 6c62351f..7175c8fc 100644 --- a/cron.php +++ b/cron.php @@ -47,10 +47,10 @@ import('ttReportHelper'); $mdb2 = getConnection(); $now = mktime(); -$sql = "select * from tt_cron c - left join tt_fav_reports fr on (c.report_id = fr.id) - where $now >= c.next and fr.status = 1 - and c.status = 1 and c.report_id is not null and c.email is not null"; + $sql = "select * from tt_fav_reports fr + left join tt_cron c on (c.report_id = fr.id) + where $now >= c.next and fr.status = 1 + and c.status = 1 and c.report_id is not null and c.email is not null"; $res = $mdb2->query($sql); if (is_a($res, 'PEAR_Error')) exit(); -- 2.20.1