From 4cbd824ee02260484c35980fa06d2a72503034b7 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Thu, 23 Feb 2023 00:30:42 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=B4=88=EA=B8=B0=20=EA=B0=B1=EC=8B=A0?= =?UTF-8?q?=20=EC=97=86=EC=9D=B4=20=EA=B5=AD=EA=B0=80=20=EC=82=AD=EC=A0=9C?= =?UTF-8?q?=EC=8B=9C=20=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func.php | 2 +- hwe/func_gamerule.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hwe/func.php b/hwe/func.php index cb12a464..20a387ff 100644 --- a/hwe/func.php +++ b/hwe/func.php @@ -1790,7 +1790,7 @@ function deleteNation(General $lord, bool $applyDB): array $nation['aux'] = Json::decode($nation['aux']); $nation['msg'] = $nationStor->nationNotice['msg'] ?? ''; $nation['scout_msg'] = $nationStor->scout_msg; - $nation['aux'] += $nationStor->max_power; + $nation['aux'] += $nationStor->max_power ?? []; $nation['history'] = getNationHistoryLogAll($nationID); $josaYi = JosaUtil::pick($nationName, '이'); diff --git a/hwe/func_gamerule.php b/hwe/func_gamerule.php index 6ecfe45b..ec20b72c 100644 --- a/hwe/func_gamerule.php +++ b/hwe/func_gamerule.php @@ -1164,7 +1164,7 @@ function checkEmperior() $nation['aux'] = Json::decode($nation['aux']); $nation['msg'] = $nationStor->nationNotice['msg'] ?? '';; $nation['scout_msg'] = $nationStor->scout_msg; - $nation['aux'] += $nationStor->max_power; + $nation['aux'] += $nationStor->max_power ?? []; $nation['history'] = getNationHistoryLogAll($nation['nation']); storeOldGenerals(0, $admin['year'], $admin['month']);