From 17a889ae13cb567e39cbfeeb0ac4069f8d045c55 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 31 Mar 2018 16:18:28 +0900 Subject: [PATCH] =?UTF-8?q?SetNationFront=20=EB=B2=84=EA=B7=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- twe/func_gamerule.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/twe/func_gamerule.php b/twe/func_gamerule.php index a16fa828..85880114 100644 --- a/twe/func_gamerule.php +++ b/twe/func_gamerule.php @@ -207,7 +207,10 @@ function SetNationFront($nationNo) { $adj = []; $db = DB::db(); - $warNations = $db->queryFirstColumn('SELECT you from diplomacy where me = %i and (state=0 or (state=1 and term<=3))'); + $warNations = $db->queryFirstColumn( + 'SELECT you from diplomacy where me = %i and (state=0 or (state=1 and term<=3))' + , $nationNo + ); if($warNations) { foreach($warNations as $warNation){ $enemyCities = $db->queryFirstColumn('SELECT city from city where nation=%i', $warNation);