Skip to content

Commit

Permalink
게시판그룹관리에서 여분필드 작성이 안되는 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Jan 26, 2021
1 parent 35d4c2f commit f5cfbc1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions adm/boardgroup_form_update.php
Expand Up @@ -21,17 +21,17 @@
$posts = array();

$check_keys = array(
'gr_subject',
'gr_device',
'gr_admin'
'gr_subject'=>'',
'gr_device'=>'',
'gr_admin'=>'',
);

for($i=1;$i<=10;$i++){
$check_keys['gr_'.$i.'_subj'] = isset($_POST['gr_'.$i.'_subj']) ? $_POST['gr_'.$i.'_subj'] : '';
$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 {
Expand Down

0 comments on commit f5cfbc1

Please sign in to comment.