From b1eeabe7fd949032144b4b54657c5a824fa8dacd Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Wed, 28 Nov 2012 05:21:39 -0500
Subject: [PATCH] Fixed: FS#2547 - Bug of new email warning feature in v3.0.5

---
 server/cron_daily.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/cron_daily.php b/server/cron_daily.php
index 0e9fffe..b35d513 100644
--- a/server/cron_daily.php
+++ b/server/cron_daily.php
@@ -686,7 +686,7 @@
 					}
 					
 					//* Send email to client
-					if($web_config['overtraffic_notify_admin'] == 'y') {
+					if($web_config['overtraffic_notify_client'] == 'y') {
 						$client_group_id = $rec["sys_groupid"];
 						$client = $app->db->queryOneRecord("SELECT client.email FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
 						if($client['email'] != '') {

--
Gitblit v1.9.1