X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/e0fcf2e0ee45de5680010e1d26e53ea7a8dc2f8a..6b99947702d9c356a300d86eb696916ad77bca71:/cron.php 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();