From 0af5e9ec84d7227aad95861e7491267b6f964b47 Mon Sep 17 00:00:00 2001 From: hide_d Date: Wed, 17 Jul 2019 21:19:34 +0900 Subject: [PATCH] =?UTF-8?q?=EC=99=B8=EA=B5=90=EA=B6=8C=EC=9E=90=20?= =?UTF-8?q?=EC=9E=84=EB=AA=85=20=EC=8B=9C=20=EB=82=B4=EB=B6=80=EC=A0=81?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20warning=EB=9C=A8=EB=8A=94=20=EB=B2=84?= =?UTF-8?q?=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/j_general_set_permission.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hwe/j_general_set_permission.php b/hwe/j_general_set_permission.php index 76744f36..4de7a5b1 100644 --- a/hwe/j_general_set_permission.php +++ b/hwe/j_general_set_permission.php @@ -32,7 +32,7 @@ $nationID = $me['nation']; if($isAmbassador){ $targetType = 'ambassador'; $targetLevel = 4; - if(count($genlist) > 2){ + if($genlist && count($genlist) > 2){ Json::die([ 'result'=>false, 'reason'=>'외교권자는 최대 둘까지만 설정 가능합니다.'