Changeset 20086 for branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Category.php
- Timestamp:
- 2011/02/04 13:58:46 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Category.php
r20076 r20086 92 92 */ 93 93 function lfGetSelectedCategoryId() { 94 // 商品ID取得95 if ( !isset($_GET['product_id']) || $_GET['product_id'] == '' || !is_numeric($_GET['product_id']) ) {96 return array(0);97 }98 $product_id = $_GET['product_id'];94 // 商品ID取得 95 $product_id = ''; 96 if ( isset($_GET['product_id']) && $_GET['product_id'] != '' && is_numeric($_GET['product_id']) ) { 97 $product_id = $_GET['product_id']; 98 } 99 99 // カテゴリID取得 100 if ( !isset($_GET['category_id']) || $_GET['category_id'] == '' || !is_numeric($_GET['category_id']) ) {101 return array(0);102 }103 $category_id = $_GET['category_id'];100 $category_id = ''; 101 if ( isset($_GET['category_id']) && $_GET['category_id'] != '' && is_numeric($_GET['category_id']) ) { 102 $category_id = $_GET['category_id']; 103 } 104 104 // 選択中のカテゴリIDを判定する 105 105 $objDb = new SC_Helper_DB_Ex();
Note: See TracChangeset
for help on using the changeset viewer.