국가 성향 버그 수정

This commit is contained in:
2018-08-26 18:25:14 +09:00
parent 22c4ec2d4a
commit 7577c84eca
+4 -1
View File
@@ -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 "<font color=cyan>{$pros}</font> <font color=magenta>{$cons}</font>";
}