diff --git a/.gitignore b/.gitignore index 90644df9..8fad738f 100644 --- a/.gitignore +++ b/.gitignore @@ -7,5 +7,3 @@ install/update.log .settings/ *.diff *~ - -parse.php diff --git a/scripts/jobs/cron_traffic.php b/scripts/jobs/cron_traffic.php index 25ed5d3d..4c59efad 100644 --- a/scripts/jobs/cron_traffic.php +++ b/scripts/jobs/cron_traffic.php @@ -152,8 +152,8 @@ if (Settings::Get('system.diskquota_enabled')) { */ if (Settings::Get("system.mailtraffic_enabled")) { $stmt = Database::prepare("SELECT lastrun FROM `" . TABLE_PANEL_CRONRUNS . "` WHERE `cronfile` = 'cron_traffic.php'"); - $result = Database::pexecute_first($stmt, array()); - $mailTrafficCalc = new MailLogParser(0); + $lastRunResult = Database::pexecute_first($stmt, array()); + $mailTrafficCalc = new MailLogParser($lastRunResult['lastrun']); } $result_stmt = Database::query("SELECT * FROM `" . TABLE_PANEL_CUSTOMERS . "` ORDER BY `customerid` ASC");