국가 성향 버그 수정
This commit is contained in:
@@ -255,7 +255,10 @@ function getConnect($con) {
|
|||||||
return $conname;
|
return $conname;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getNationType2(int $type) {
|
function getNationType2(?int $type) {
|
||||||
|
if($type === null){
|
||||||
|
return '-';
|
||||||
|
}
|
||||||
[$name, $pros, $cons] = getNationTypeList()[$type]??['-', '', ''];
|
[$name, $pros, $cons] = getNationTypeList()[$type]??['-', '', ''];
|
||||||
return "<font color=cyan>{$pros}</font> <font color=magenta>{$cons}</font>";
|
return "<font color=cyan>{$pros}</font> <font color=magenta>{$cons}</font>";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user