From aaa972d76739d2b0e2525a265d66c2bfc1ac4dba Mon Sep 17 00:00:00 2001 From: hide_d Date: Mon, 2 Jul 2018 19:15:43 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AA=85=EC=98=88=EC=9D=98=20=EC=A0=84?= =?UTF-8?q?=EB=8B=B9=20=EB=B0=B0=EA=B2=BD=EC=83=89=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/a_hallOfFame.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/hwe/a_hallOfFame.php b/hwe/a_hallOfFame.php index e27f929a..465fd537 100644 --- a/hwe/a_hallOfFame.php +++ b/hwe/a_hallOfFame.php @@ -94,10 +94,15 @@ foreach($types as $idx=>[$typeName, $typeValue]) { $hallResult = array_map(function($general)use($typeValue){ $aux = Json::decode($general['aux']); $general += $aux; - if(!key_exists('color', $general)){ - $general['bgColor'] = GameConst::$basecolor4; - + if(!key_exists('bgColor', $general)){ + if(!key_exists('color', $general)){ + $general['bgColor'] = GameConst::$basecolor4; + } + else{ + $general['bgColor'] = $general['color']; + } } + if(!key_exists('fgColor', $general)){ $general['fgColor'] = newColor($general['bgColor']); }