myNation이 지정되었을 때 첩보 도시가 없을 때 도시가 뜨지 않는 문제 해결
This commit is contained in:
+7
-1
@@ -83,7 +83,13 @@ function getWorldMap($req){
|
||||
if($myNation){
|
||||
$spyList = $db->queryFirstField('select `spy` from `nation` where `nation`=%i',
|
||||
$myNation);
|
||||
$spyList = array_map('Util::toInt', explode("|", $spyList));
|
||||
if($spyList){
|
||||
$spyList = array_map('\sammo\Util::toInt', explode("|", $spyList));
|
||||
}
|
||||
else{
|
||||
$spyList = [];
|
||||
}
|
||||
|
||||
}
|
||||
else{
|
||||
$spyList = [];
|
||||
|
||||
Reference in New Issue
Block a user