myNation이 지정되었을 때 첩보 도시가 없을 때 도시가 뜨지 않는 문제 해결

This commit is contained in:
2018-04-06 03:32:20 +09:00
parent 56e6692817
commit 18101d9e90
+7 -1
View File
@@ -83,7 +83,13 @@ function getWorldMap($req){
if($myNation){ if($myNation){
$spyList = $db->queryFirstField('select `spy` from `nation` where `nation`=%i', $spyList = $db->queryFirstField('select `spy` from `nation` where `nation`=%i',
$myNation); $myNation);
$spyList = array_map('Util::toInt', explode("|", $spyList)); if($spyList){
$spyList = array_map('\sammo\Util::toInt', explode("|", $spyList));
}
else{
$spyList = [];
}
} }
else{ else{
$spyList = []; $spyList = [];