From 69902b4af4976be56c1d6e877ea5de3b3bc9fd16 Mon Sep 17 00:00:00 2001 From: Martin Ambrus Date: Thu, 19 Oct 2017 23:56:07 +0200 Subject: [PATCH] fix: Admin Map shows Natars when Player villages are not showing --- Admin/Templates/map.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Admin/Templates/map.tpl b/Admin/Templates/map.tpl index a7fac3ba..e2e80a3f 100644 --- a/Admin/Templates/map.tpl +++ b/Admin/Templates/map.tpl @@ -15,12 +15,12 @@ if(isset($_POST['show1']) || isset($_POST['show2'])) { $check2=isset($_POST['show2'])? "checked ":""; if ($check1!="" && $check2!="") {$criteria="";} if ($check1!="" && $check2=="") {$criteria="WHERE tribe<>5";} - if ($check1=="" && $check2!="") {$criteria="WHERE tribe IN(0,5)";} + if ($check1=="" && $check2!="") {$criteria="WHERE tribe IN(0,5) OR tribe IS NULL";} }elseif(!isset($_GET['c'])){ $check1="checked "; $criteria="WHERE tribe<>5"; } -if ($check1=="" && $check2=="") {$criteria="WHERE tribe=0)";} +if ($check1=="" && $check2=="") {$criteria="WHERE tribe=0";} ?>