From 09fc105d54730de7e0097faea8bba5472d9c324f Mon Sep 17 00:00:00 2001 From: thisgun Date: Wed, 6 Dec 2017 18:57:40 +0900 Subject: [PATCH] =?UTF-8?q?php=207.2=20=EC=97=90=EC=84=9C=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=EB=82=98=EB=8A=94=20=EB=B6=80=EB=B6=84=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/shop_admin/itemformupdate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adm/shop_admin/itemformupdate.php b/adm/shop_admin/itemformupdate.php index f262cbd99..81613568d 100644 --- a/adm/shop_admin/itemformupdate.php +++ b/adm/shop_admin/itemformupdate.php @@ -209,7 +209,7 @@ sql_query(" delete from {$g5['g5_shop_event_item_table']} where it_id = '$it_id' // 선택옵션 sql_query(" delete from {$g5['g5_shop_item_option_table']} where io_type = '0' and it_id = '$it_id' "); // 기존선택옵션삭제 -$option_count = count($_POST['opt_id']); +$option_count = (isset($_POST['opt_id']) && is_array($_POST['opt_id'])) ? count($_POST['opt_id']) : array(); if($option_count) { // 옵션명 $opt1_cnt = $opt2_cnt = $opt3_cnt = 0; @@ -237,7 +237,7 @@ if($option_count) { // 추가옵션 sql_query(" delete from {$g5['g5_shop_item_option_table']} where io_type = '1' and it_id = '$it_id' "); // 기존추가옵션삭제 -$supply_count = count($_POST['spl_id']); +$supply_count = (isset($_POST['spl_id']) && is_array($_POST['spl_id'])) ? count($_POST['spl_id']) : array(); if($supply_count) { // 추가옵션명 $arr_spl = array();