인사부 버그 수정

메인 페이지에서 재야 인사 에러 안나게 수정
This commit is contained in:
2018-04-21 23:19:29 +09:00
parent 131a6cb6c3
commit 556e1059f9
2 changed files with 13 additions and 6 deletions
+6 -4
View File
@@ -101,10 +101,12 @@ function commandButton() {
$db = DB::db();
$me = $db->queryFirstRow("select no,nation,level,belong from general where owner=%i", $userID);
$nation = $db->queryFirstRow("select nation,level,color,secretlimit from nation where nation=%i",$me['nation']);
if($nation['color'] == "") { $nation['color'] = "#000000"; }
$nation = $db->queryFirstRow("select nation,level,color,secretlimit from nation where nation=%i",$me['nation'])??[
'nation'=>0,
'level'=>0,
'secretlimit'=>99,
'color'=>'#000000'
];
$bgColor = Util::array_get($nation['color'])?:'#000000';
$fgColor = newColor($bgColor);