Skip to content

Commit

Permalink
General fixes
Browse files Browse the repository at this point in the history
+Scounting reports are now excluded from the raidlist
  • Loading branch information
iopietro committed May 29, 2018
1 parent 36b790d commit b629827
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Templates/goldClub/farmlist.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit b629827

Please sign in to comment.