From 7577c84ecac05fdabcd558311cc01b5efb6e9e2a Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 26 Aug 2018 18:25:14 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B5=AD=EA=B0=80=20=EC=84=B1=ED=96=A5=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/func_converter.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hwe/func_converter.php b/hwe/func_converter.php index 4d34e290..a2820a00 100644 --- a/hwe/func_converter.php +++ b/hwe/func_converter.php @@ -255,7 +255,10 @@ function getConnect($con) { return $conname; } -function getNationType2(int $type) { +function getNationType2(?int $type) { + if($type === null){ + return '-'; + } [$name, $pros, $cons] = getNationTypeList()[$type]??['-', '', '']; return "{$pros} {$cons}"; }