From 029167ad5dd7cc28a94c703a14d5d41ef92629a7 Mon Sep 17 00:00:00 2001 From: Michael Fürmann <michael@spicyweb.de> Date: Thu, 19 Feb 2015 15:23:03 -0500 Subject: [PATCH] Removed management method 'mailaccount' as long as maildomain hook is not implemented --- interface/lib/classes/quota_lib.inc.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/interface/lib/classes/quota_lib.inc.php b/interface/lib/classes/quota_lib.inc.php index 1f9c419..794db53 100644 --- a/interface/lib/classes/quota_lib.inc.php +++ b/interface/lib/classes/quota_lib.inc.php @@ -122,7 +122,7 @@ // This Month $tmp_recs = $app->db->queryAllRecords("SELECT hostname, SUM(traffic_bytes) as t FROM web_traffic WHERE YEAR(traffic_date) = ? AND MONTH(traffic_date) = ? AND hostname IN ('".join("','",$hostnames)."') GROUP BY hostname", $tmp_year, $tmp_month); foreach ($tmp_recs as $tmp_rec) { - $traffic_data[]['this_month'] = $tmp_rec['t']; + $traffic_data[$tmp_rec['hostname']]['this_month'] = $tmp_rec['t']; } // This Year $tmp_recs = $app->db->queryAllRecords("SELECT hostname, SUM(traffic_bytes) as t FROM web_traffic WHERE YEAR(traffic_date) = ? AND hostname IN ('".join("','",$hostnames)."') GROUP BY hostname", $tmp_year); -- Gitblit v1.9.1