From 18101d9e906c65301039fb3847c9528ee32f1855 Mon Sep 17 00:00:00 2001 From: hide_d Date: Fri, 6 Apr 2018 03:32:20 +0900 Subject: [PATCH] =?UTF-8?q?myNation=EC=9D=B4=20=EC=A7=80=EC=A0=95=EB=90=98?= =?UTF-8?q?=EC=97=88=EC=9D=84=20=EB=95=8C=20=EC=B2=A9=EB=B3=B4=20=EB=8F=84?= =?UTF-8?q?=EC=8B=9C=EA=B0=80=20=EC=97=86=EC=9D=84=20=EB=95=8C=20=EB=8F=84?= =?UTF-8?q?=EC=8B=9C=EA=B0=80=20=EB=9C=A8=EC=A7=80=20=EC=95=8A=EB=8A=94=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_map.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 = [];