X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/1b6699f3d4ad1961fa4055ec0033bc10f0b06b83..259a4673f7475125e1ab6b68f77a67401fa52d06:/cron.php?ds=inline
diff --git a/cron.php b/cron.php
index 5f342ddf..262cafe5 100644
--- a/cron.php
+++ b/cron.php
@@ -59,7 +59,7 @@ while ($val = $res->fetchRow()) {
// We have jobs to execute in user language.
// Get favorite report details.
- $report = ttFavReportHelper::getReport($val['report_id']);
+ $report = ttFavReportHelper::getReportOptions($val['report_id']);
if (!$report) continue; // Skip not found report.
// Recycle global $user object, as user settings are specific for each report.
@@ -76,7 +76,7 @@ while ($val = $res->fetchRow()) {
// Email report if condition is okay.
if ($condition_ok) {
if (ttReportHelper::sendFavReport($report, $val['subject'], $val['email'], $val['cc']))
- echo "Report ".$val['report_id']. " sent to ".$val['email']."
";
+ echo "Report ".$val['report_id']. " sent.
";
else
echo "Error while emailing report...
";
}