SetNationFront 버그 수정

This commit is contained in:
2018-03-31 16:18:28 +09:00
parent 31d9bac59c
commit 17a889ae13
+4 -1
View File
@@ -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);