From d41246de9ddf2b4d05e3577144b68db57b2f944f Mon Sep 17 00:00:00 2001 From: Hide_D Date: Thu, 10 Aug 2023 19:04:55 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=B4=88=EA=B8=B0=20=EC=8B=9C=EC=9E=91?= =?UTF-8?q?=EC=8B=9C=20=EC=97=B0=EA=B0=90=EC=9D=B4=20=EC=95=88=EB=B3=B4?= =?UTF-8?q?=EC=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/v_history.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hwe/v_history.php b/hwe/v_history.php index 7b4113e7..ddaa94cf 100644 --- a/hwe/v_history.php +++ b/hwe/v_history.php @@ -24,11 +24,22 @@ if ($serverID !== UniqueConst::$serverID) { [$f_year, $f_month] = $db->queryFirstList('SELECT year, month FROM ng_history WHERE server_id = %s ORDER BY year ASC, month ASC LIMIT 1', $serverID); [$l_year, $l_month] = $db->queryFirstList('SELECT year, month FROM ng_history WHERE server_id = %s ORDER BY year DESC, month DESC LIMIT 1', $serverID); + if($serverID === UniqueConst::$serverID){ [$currentYear, $currentMonth] = $gameStor->getValuesAsArray(['year', 'month']); + if($f_year === null || $l_year === null){ + $f_year = $currentYear; + $f_month = $currentMonth; + + $l_year = $currentYear; + $l_month = $currentMonth; + } } else{ [$currentYear, $currentMonth] = [$l_year, $l_month]; + if($f_year === null || $f_year === null){ + die('잘못된 요청입니다.'); + } } ?>