From 7105a04a61d6c83be5cfb03f5d4a4cb1a82da912 Mon Sep 17 00:00:00 2001
From: Dominik <info@profi-webdesign.com>
Date: Tue, 3 Feb 2015 00:31:22 +0100
Subject: [PATCH] added missing array-key

---
 interface/lib/classes/quota_lib.inc.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/interface/lib/classes/quota_lib.inc.php b/interface/lib/classes/quota_lib.inc.php
index 1f9c41936c..794db538b9 100644
--- a/interface/lib/classes/quota_lib.inc.php
+++ b/interface/lib/classes/quota_lib.inc.php
@@ -122,7 +122,7 @@ class quota_lib {
 			// 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);
-- 
GitLab