From 01c896e2811209c55d9b2e94977568de773c2e38 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Fri, 20 Aug 2021 13:26:14 +0200 Subject: [PATCH] Removed unused $search_cond variable Signed-off-by: Janos SUTO --- webui/model/accounting/accounting.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/webui/model/accounting/accounting.php b/webui/model/accounting/accounting.php index dd7dd49b..c1016b9f 100644 --- a/webui/model/accounting/accounting.php +++ b/webui/model/accounting/accounting.php @@ -144,10 +144,6 @@ class ModelAccountingAccounting extends Model { $search = preg_replace("/\s{1,}/", "", $search); - if($search) { - $search_cond .= " AND ( `email` LIKE '%".$search."%' OR `domain` LIKE '%".$search."%' )"; - } - $query = "SELECT `email` AS `item`, MIN(`date`) AS `oldest`, MAX(`date`) AS `newest`, SUM(`sent`) AS `sent`, SUM(`recd`) AS `recd`, SUM(`sentsize`) AS `sentsize`, SUM(`recdsize`) AS `recdsize` FROM " . TABLE_STAT_COUNTER; if($item == 'email') {