국가 성향 출력 버그 수정
This commit is contained in:
@@ -223,7 +223,10 @@ function getSpecialInfo(?int $type):?string{
|
|||||||
return $infoText[$type][1]??null;
|
return $infoText[$type][1]??null;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getNationType(int $type) {
|
function getNationType(?int $type) {
|
||||||
|
if($type === null){
|
||||||
|
return '-';
|
||||||
|
}
|
||||||
static $cache = [];
|
static $cache = [];
|
||||||
if(\key_exists($type, $cache)){
|
if(\key_exists($type, $cache)){
|
||||||
return $cache[$type];
|
return $cache[$type];
|
||||||
|
|||||||
@@ -350,6 +350,8 @@ class Util extends \utilphp\util
|
|||||||
|
|
||||||
shuffle($keys);
|
shuffle($keys);
|
||||||
|
|
||||||
|
$new = [];
|
||||||
|
|
||||||
foreach($keys as $key) {
|
foreach($keys as $key) {
|
||||||
$new[$key] = $array[$key];
|
$new[$key] = $array[$key];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user