국가 성향 출력 버그 수정

This commit is contained in:
2018-08-26 18:24:35 +09:00
parent 8ac85881a9
commit 22c4ec2d4a
2 changed files with 6 additions and 1 deletions
+4 -1
View File
@@ -223,7 +223,10 @@ function getSpecialInfo(?int $type):?string{
return $infoText[$type][1]??null;
}
function getNationType(int $type) {
function getNationType(?int $type) {
if($type === null){
return '-';
}
static $cache = [];
if(\key_exists($type, $cache)){
return $cache[$type];
+2
View File
@@ -350,6 +350,8 @@ class Util extends \utilphp\util
shuffle($keys);
$new = [];
foreach($keys as $key) {
$new[$key] = $array[$key];
}