From 9e68bc90c267e21776614876a0a5e41c41f138f9 Mon Sep 17 00:00:00 2001 From: hide_d Date: Mon, 6 Sep 2021 02:17:56 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=AC=EC=95=BC=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=EB=8F=84=EC=8B=9C=EB=B3=B4=EA=B8=B0=20warning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/b_currentCity.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hwe/b_currentCity.php b/hwe/b_currentCity.php index c8a62618..8e8d178e 100644 --- a/hwe/b_currentCity.php +++ b/hwe/b_currentCity.php @@ -16,7 +16,11 @@ $db = DB::db(); increaseRefresh("현재도시", 1); $me = $db->queryFirstRow('SELECT no,nation,officer_level,city from general where owner=%i', $userID); -$myNation = $db->queryFirstRow('SELECT nation,level,spy FROM nation WHERE nation=%i', $me['nation']); +$myNation = $db->queryFirstRow('SELECT nation,level,spy FROM nation WHERE nation=%i', $me['nation'])??[ + 'nation'=>0, + 'level'=>0, + 'spy'=>'' +]; $templates = new \League\Plates\Engine('templates');