diff --git a/hwe/func_map.php b/hwe/func_map.php index c6703707..8d583d91 100644 --- a/hwe/func_map.php +++ b/hwe/func_map.php @@ -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 = [];