Ignore:
Timestamp:
2011/02/04 13:58:46 (13 years ago)
Author:
yomoro
Message:

#986 リファクタリング修正分(問題無ければ完了にします!)

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  
    9292     */ 
    9393    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        } 
    9999        // カテゴリ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        } 
    104104        // 選択中のカテゴリIDを判定する 
    105105        $objDb = new SC_Helper_DB_Ex(); 
Note: See TracChangeset for help on using the changeset viewer.