From 595c11a9a7e7c140cb28d4b1e324808ce0b9c946 Mon Sep 17 00:00:00 2001 From: hide_d Date: Thu, 19 Apr 2018 01:45:35 +0900 Subject: [PATCH] =?UTF-8?q?NPC=20=EC=82=AC=EB=A0=B9=ED=84=B4=EC=9D=B4=20'?= =?UTF-8?q?=EB=AF=B8=EC=84=A4=EC=A0=95'=EC=9D=BC=EB=95=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_npc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hwe/func_npc.php b/hwe/func_npc.php index c0479d1b..724e3953 100644 --- a/hwe/func_npc.php +++ b/hwe/func_npc.php @@ -667,8 +667,10 @@ function processAI($no) { } } } - $query = "update nation set l{$general['level']}turn0='$command' where nation='{$general['nation']}'"; - MYDB_query($query, $connect) or Error("processAI09 ".MYDB_error($connect),""); + if(isset($command)){ + $query = "update nation set l{$general['level']}turn0='$command' where nation='{$general['nation']}'"; + MYDB_query($query, $connect) or Error("processAI09 ".MYDB_error($connect),""); + } } }