From f5cfbc13460d6235956db3a5b3e2858aa0e3f37f Mon Sep 17 00:00:00 2001 From: thisgun Date: Tue, 26 Jan 2021 10:50:19 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=8C=EC=8B=9C=ED=8C=90=EA=B7=B8=EB=A3=B9?= =?UTF-8?q?=EA=B4=80=EB=A6=AC=EC=97=90=EC=84=9C=20=EC=97=AC=EB=B6=84?= =?UTF-8?q?=ED=95=84=EB=93=9C=20=EC=9E=91=EC=84=B1=EC=9D=B4=20=EC=95=88?= =?UTF-8?q?=EB=90=98=EB=8A=94=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/boardgroup_form_update.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/adm/boardgroup_form_update.php b/adm/boardgroup_form_update.php index 41048403c..937198184 100644 --- a/adm/boardgroup_form_update.php +++ b/adm/boardgroup_form_update.php @@ -21,9 +21,9 @@ if (!$gr_subject) alert('그룹 제목을 입력하세요.'); $posts = array(); $check_keys = array( -'gr_subject', -'gr_device', -'gr_admin' +'gr_subject'=>'', +'gr_device'=>'', +'gr_admin'=>'', ); for($i=1;$i<=10;$i++){ @@ -31,7 +31,7 @@ for($i=1;$i<=10;$i++){ $check_keys['gr_'.$i] = isset($_POST['gr_'.$i]) ? $_POST['gr_'.$i] : ''; } -foreach( $check_keys as $key ){ +foreach( $check_keys as $key=>$value ){ if( $key === 'gr_subject' ){ $posts[$key] = isset($_POST[$key]) ? strip_tags(clean_xss_attributes($_POST[$key])) : ''; } else {