From b629827b6207fbe60f559f8b98136107ee1e9d40 Mon Sep 17 00:00:00 2001 From: iopietro Date: Tue, 29 May 2018 19:01:17 +0200 Subject: [PATCH] General fixes +Scounting reports are now excluded from the raidlist --- Templates/goldClub/farmlist.tpl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Templates/goldClub/farmlist.tpl b/Templates/goldClub/farmlist.tpl index 93dffb1e..0139b494 100644 --- a/Templates/goldClub/farmlist.tpl +++ b/Templates/goldClub/farmlist.tpl @@ -119,8 +119,7 @@ $noticeClass = ["Scout Report", "Won as attacker without losses", "Won as attack "Reinforcement arrived", "", "Wood Delivered", "Clay Delivered", "Iron Delivered", "Crop Delivered", "", "Won as defender without losses", "Won as defender with losses", "Lost as defender with losses", "Won scouting as attacker", "Lost scouting as attacker", "Won scouting as defender", "Lost scouting as defender"]; -$limits = "(ntype < 4 OR ntype = 18 OR ntype = 19)"; -$getnotice = mysqli_query($database->dblink,"SELECT ntype, data, time, id FROM ".TB_PREFIX."ndata WHERE $limits AND toWref = ".(int) $towref." AND uid = ".(int) $session->uid." ORDER BY time DESC Limit 1"); +$getnotice = mysqli_query($database->dblink,"SELECT ntype, data, time, id FROM ".TB_PREFIX."ndata WHERE ntype < 4 AND toWref = ".(int) $towref." AND uid = ".(int) $session->uid." ORDER BY time DESC Limit 1"); if(mysqli_num_rows($getnotice) > 0){ while($row2 = mysqli_fetch_array($getnotice)){ $dataarray = explode(",",$row2['data']);