From fb8d2a2e0175291ea6afe0147b68f0f0c37814ba Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 7 Jul 2018 04:58:19 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B5=AC=EB=B2=84=EC=A0=84=20=EC=B2=A9?= =?UTF-8?q?=EB=B3=B4=20=EB=A7=88=EC=9D=B4=EA=B7=B8=EB=A0=88=EC=9D=B4?= =?UTF-8?q?=EC=85=98=EC=8B=9C=20=EC=A7=80=EB=8F=84=20=ED=91=9C=EA=B8=B0=20?= =?UTF-8?q?=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/b_currentCity.php | 2 +- hwe/func_gamerule.php | 2 +- hwe/func_map.php | 2 +- hwe/func_process.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hwe/b_currentCity.php b/hwe/b_currentCity.php index 64079166..37f2dd6f 100644 --- a/hwe/b_currentCity.php +++ b/hwe/b_currentCity.php @@ -125,7 +125,7 @@ if($myNation['level'] > 0) { if($rawSpy == ''){ $spyCities = []; } - else if(strpos($rawSpy, '|') !== false || is_integer($rawSpy)){ + else if(strpos($rawSpy, '|') !== false || is_numeric($rawSpy)){ //TODO: 0.8 버전 이후에는 삭제할 것. 이후 버전은 json으로 변경됨. $spyCities = array_map(function($val){ $val = intval($val); diff --git a/hwe/func_gamerule.php b/hwe/func_gamerule.php index 4dd8cc77..00d92925 100644 --- a/hwe/func_gamerule.php +++ b/hwe/func_gamerule.php @@ -396,7 +396,7 @@ function preUpdateMonthly() { //첩보-1 foreach($db->queryAllLists("SELECT nation, spy FROM nation WHERE spy!='' AND spy!='{}'") as [$nationNo, $rawSpy]){ - if (strpos($rawSpy, '|') !== false || is_integer($rawSpy)) { + if (strpos($rawSpy, '|') !== false || is_numeric($rawSpy)) { //TODO: 0.8 버전 이후에는 삭제할 것. 이후 버전은 json으로 변경됨. $spyInfo = []; foreach(explode('|', $rawSpy) as $value){ diff --git a/hwe/func_map.php b/hwe/func_map.php index 3dd2b6fc..69ad6030 100644 --- a/hwe/func_map.php +++ b/hwe/func_map.php @@ -100,7 +100,7 @@ function getWorldMap($req){ $rawSpy = $db->queryFirstField('select `spy` from `nation` where `nation`=%i', $myNation); - if(strpos($rawSpy, '|') !== false || is_integer($rawSpy)){ + if(strpos($rawSpy, '|') !== false || is_numeric($rawSpy)){ //NOTE: 0.8 이전 데이터가 남아있으므로, 0.8버전으로 마이그레이션 이후에도 이곳은 삭제하면 안됨 $spyInfo = []; foreach(explode('|', $rawSpy) as $value){ diff --git a/hwe/func_process.php b/hwe/func_process.php index 98a2425a..32433844 100644 --- a/hwe/func_process.php +++ b/hwe/func_process.php @@ -1750,7 +1750,7 @@ function process_31(&$general) { if($rawSpy == ''){ $spyInfo = []; } - else if(strpos($rawSpy, '|') !== false || is_integer($rawSpy)){ + else if(strpos($rawSpy, '|') !== false || is_numeric($rawSpy)){ //TODO: 0.8 버전 이후에는 삭제할 것. 이후 버전은 json으로 변경됨. $spyInfo = []; foreach(explode('|', $rawSpy) as $value){