diff --git a/mobile/shop/itemqalist.php b/mobile/shop/itemqalist.php index 23a48f87f..99b4fc76d 100644 --- a/mobile/shop/itemqalist.php +++ b/mobile/shop/itemqalist.php @@ -7,6 +7,11 @@ include_once(G5_MSHOP_PATH.'/_head.php'); $sql_common = " from `{$g5['g5_shop_item_qa_table']}` a join `{$g5['g5_shop_item_table']}` b on (a.it_id=b.it_id) "; $sql_search = " where (1) "; +if( isset($sfl) && ! in_array($sfl, array('b.it_name', 'a.it_id', 'a.iq_subject', 'a.iq_question', 'a.iq_name', 'a.mb_id')) ){ + //다른값이 들어가있다면 초기화 + $sfl = ''; +} + if(!$sfl) $sfl = 'b.it_name'; diff --git a/mobile/shop/itemuselist.php b/mobile/shop/itemuselist.php index 02f32fde5..0a017004c 100644 --- a/mobile/shop/itemuselist.php +++ b/mobile/shop/itemuselist.php @@ -7,6 +7,11 @@ include_once(G5_MSHOP_PATH.'/_head.php'); $sql_common = " from `{$g5['g5_shop_item_use_table']}` a join `{$g5['g5_shop_item_table']}` b on (a.it_id=b.it_id) "; $sql_search = " where a.is_confirm = '1' "; +if( isset($sfl) && ! in_array($sfl, array('b.it_name', 'a.it_id', 'a.is_subject', 'a.is_content', 'a.is_name', 'a.mb_id')) ){ + //다른값이 들어가있다면 초기화 + $sfl = ''; +} + if(!$sfl) $sfl = 'b.it_name';