myNation이 지정되었을 때 첩보 도시가 없을 때 도시가 뜨지 않는 문제 해결
This commit is contained in:
+7
-1
@@ -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 = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user