From 951143120bac2fb92e88b30fbd672456f3867a5e Mon Sep 17 00:00:00 2001 From: Hide_D Date: Mon, 27 Feb 2023 01:54:19 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20General=EA=B0=9D=EC=B2=B4=EC=97=90?= =?UTF-8?q?=EC=84=9C=20permission=EA=B3=BC=20penalty=EB=A5=BC=20=EB=B0=9B?= =?UTF-8?q?=EC=95=84=EC=98=A4=EC=A7=80=20=EC=95=8A=EB=8A=94=20=EB=B2=84?= =?UTF-8?q?=EA=B7=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/API/General/GetFrontInfo.php | 1 + hwe/sammo/General.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hwe/sammo/API/General/GetFrontInfo.php b/hwe/sammo/API/General/GetFrontInfo.php index c3f18991..9b2ae5fe 100644 --- a/hwe/sammo/API/General/GetFrontInfo.php +++ b/hwe/sammo/API/General/GetFrontInfo.php @@ -76,6 +76,7 @@ class GetFrontInfo extends \sammo\BaseAPI 'conlimit', ]); + $lastVote = null; if ($lastVoteID) { $voteStor = KVStorage::getStorage($db, 'vote'); $lastVote = VoteInfo::fromArray($voteStor->getValue("vote_{$lastVoteID}")); diff --git a/hwe/sammo/General.php b/hwe/sammo/General.php index bdac693a..5f715220 100644 --- a/hwe/sammo/General.php +++ b/hwe/sammo/General.php @@ -1082,7 +1082,7 @@ class General implements iAction 'personal', 'special', 'special2', 'defence_train', 'tnmt', 'npc', 'npc_org', 'deadyear', 'npcmsg', 'dex1', 'dex2', 'dex3', 'dex4', 'dex5', 'betray', 'recent_war', 'last_turn', 'myset', - 'specage', 'specage2', 'con', 'connect', 'aux', 'lastrefresh', + 'specage', 'specage2', 'con', 'connect', 'aux', 'lastrefresh', 'permission', 'penalty', ]; if ($reqColumns === null) {