Fixing mailtraffic cron, fixes traffic graph sorting

Signed-off-by: Roman Schmerold (BNoiZe) <bnoize@froxlor.org>
This commit is contained in:
Roman Schmerold (BNoiZe)
2013-12-22 10:57:56 +01:00
parent 82f3d8d18c
commit 429f748ad8
5 changed files with 10 additions and 6 deletions

View File

@@ -151,9 +151,7 @@ if (Settings::Get('system.diskquota_enabled')) {
* MAIL-Traffic
*/
if (Settings::Get("system.mailtraffic_enabled")) {
$stmt = Database::prepare("SELECT lastrun FROM `" . TABLE_PANEL_CRONRUNS . "` WHERE `cronfile` = 'cron_traffic.php'");
$lastRunResult = Database::pexecute_first($stmt, array());
$mailTrafficCalc = new MailLogParser($lastRunResult['lastrun']);
$mailTrafficCalc = new MailLogParser(Settings::Get("system.last_traffic_run"));
}
$result_stmt = Database::query("SELECT * FROM `" . TABLE_PANEL_CUSTOMERS . "` ORDER BY `customerid` ASC");