From 3aa9d8ae566c75cffb556bf677d72ab0b83a377d Mon Sep 17 00:00:00 2001 From: hide_d Date: Mon, 4 May 2020 06:22:34 +0900 Subject: [PATCH] =?UTF-8?q?=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/sammo/Constraint/AllowDiplomacyStatus.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hwe/sammo/Constraint/AllowDiplomacyStatus.php b/hwe/sammo/Constraint/AllowDiplomacyStatus.php index 07fca170..eb1704be 100644 --- a/hwe/sammo/Constraint/AllowDiplomacyStatus.php +++ b/hwe/sammo/Constraint/AllowDiplomacyStatus.php @@ -53,9 +53,9 @@ class AllowDiplomacyStatus extends Constraint{ $db = DB::db(); $state = $db->queryFirstField( - 'SELECT state FROM diplomacy WHERE me = %i AND `state` IN %li LIMIT 1', + 'SELECT state FROM diplomacy WHERE me = %i AND `state` NOT IN %li LIMIT 1', $this->nationID, - array_keys($this->allowStatus) + $this->allowStatus ); if($state !== null){ return true;