Skip to content

Commit

Permalink
Fixed mailtraffic not using lastrun time
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Schmerold (BNoiZe) <bnoize@froxlor.org>
  • Loading branch information
Roman Schmerold (BNoiZe) committed Dec 20, 2013
1 parent a92cdb2 commit 9acaa94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Expand Up @@ -7,5 +7,3 @@ install/update.log
.settings/
*.diff
*~

parse.php
4 changes: 2 additions & 2 deletions scripts/jobs/cron_traffic.php
Expand Up @@ -152,8 +152,8 @@
*/
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");
Expand Down

0 comments on commit 9acaa94

Please sign in to comment.