Removed unused $search_cond variable

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2021-08-20 13:26:14 +02:00
parent 689a06cfa4
commit 01c896e281

View File

@ -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') {