Fixed mailtraffic not using lastrun time
Signed-off-by: Roman Schmerold (BNoiZe) <bnoize@froxlor.org>
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -7,5 +7,3 @@ install/update.log
|
|||||||
.settings/
|
.settings/
|
||||||
*.diff
|
*.diff
|
||||||
*~
|
*~
|
||||||
|
|
||||||
parse.php
|
|
||||||
|
|||||||
@@ -152,8 +152,8 @@ if (Settings::Get('system.diskquota_enabled')) {
|
|||||||
*/
|
*/
|
||||||
if (Settings::Get("system.mailtraffic_enabled")) {
|
if (Settings::Get("system.mailtraffic_enabled")) {
|
||||||
$stmt = Database::prepare("SELECT lastrun FROM `" . TABLE_PANEL_CRONRUNS . "` WHERE `cronfile` = 'cron_traffic.php'");
|
$stmt = Database::prepare("SELECT lastrun FROM `" . TABLE_PANEL_CRONRUNS . "` WHERE `cronfile` = 'cron_traffic.php'");
|
||||||
$result = Database::pexecute_first($stmt, array());
|
$lastRunResult = Database::pexecute_first($stmt, array());
|
||||||
$mailTrafficCalc = new MailLogParser(0);
|
$mailTrafficCalc = new MailLogParser($lastRunResult['lastrun']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$result_stmt = Database::query("SELECT * FROM `" . TABLE_PANEL_CUSTOMERS . "` ORDER BY `customerid` ASC");
|
$result_stmt = Database::query("SELECT * FROM `" . TABLE_PANEL_CUSTOMERS . "` ORDER BY `customerid` ASC");
|
||||||
|
|||||||
Reference in New Issue
Block a user