Changeset 21441 for branches/version-2_12-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Category.php
- Timestamp:
- 2012/02/06 11:05:15 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Category.php
r21420 r21441 63 63 function action() { 64 64 // モバイル判定 65 switch ( 65 switch (SC_Display_Ex::detectDevice() ) { 66 66 case DEVICE_TYPE_MOBILE: 67 67 // メインカテゴリの取得 … … 95 95 // 商品ID取得 96 96 $product_id = ''; 97 if ( 97 if (isset($arrRequest['product_id']) && $arrRequest['product_id'] != '' && is_numeric($arrRequest['product_id']) ) { 98 98 $product_id = $arrRequest['product_id']; 99 99 } 100 100 // カテゴリID取得 101 101 $category_id = ''; 102 if ( 102 if (isset($arrRequest['category_id']) && $arrRequest['category_id'] != '' && is_numeric($arrRequest['category_id']) ) { 103 103 $category_id = $arrRequest['category_id']; 104 104 } … … 125 125 $from = 'dtb_category left join dtb_category_total_count using (category_id)'; 126 126 // 登録商品数のチェック 127 if ($count_check) {127 if ($count_check) { 128 128 $where = 'del_flg = 0 AND product_count > 0'; 129 129 } else { … … 153 153 $this->root_parent_id[] = $arrParentID[0]; 154 154 $arrDispID = array_merge($arrBrothersID, $arrChildrenID); 155 foreach ($arrRet as $key => $array) {156 foreach ($arrDispID as $val) {157 if ($array['category_id'] == $val) {155 foreach ($arrRet as $key => $array) { 156 foreach ($arrDispID as $val) { 157 if ($array['category_id'] == $val) { 158 158 $arrRet[$key]['display'] = 1; 159 159 break; … … 178 178 $where = 'level <= 2 AND del_flg = 0'; 179 179 // 登録商品数のチェック 180 if ($count_check) {180 if ($count_check) { 181 181 $where .= ' AND product_count > 0'; 182 182 }
Note: See TracChangeset
for help on using the changeset viewer.