]> wagnertech.de Git - timetracker.git/blobdiff - cron.php
Further work on improving Danish file.
[timetracker.git] / cron.php
index 6c62351ff8992eff64aa332f7116e99d4678a94c..eb7965a22247e30d1010af54ff7af1f4be79401b 100644 (file)
--- a/cron.php
+++ b/cron.php
@@ -45,12 +45,12 @@ import('ttFavReportHelper');
 import('ttReportHelper');
 
 $mdb2 = getConnection();
-$now = mktime();
+$now = time();
 
-$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 c.id, c.cron_spec, c.report_id, c.email, c.report_condition 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";
 $res = $mdb2->query($sql);
 if (is_a($res, 'PEAR_Error'))
   exit();