Ignore:
Timestamp:
2012/02/15 20:18:09 (12 years ago)
Author:
Seasoft
Message:

#1625 (typo修正・ソース整形・ソースコメントの改善)

Location:
branches/version-2_12-dev/data/class/pages/products
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/pages/products/LC_Page_Products_Detail.php

    r21514 r21515  
    448448 
    449449        $objQuery->setOrder('rank DESC'); 
    450         $arrRecommendData = $objQuery->select('recommend_product_id, comment', 'dtb_recommend_products', "product_id = ?", array($product_id)); 
     450        $arrRecommendData = $objQuery->select('recommend_product_id, comment', 'dtb_recommend_products', 'product_id = ?', array($product_id)); 
    451451 
    452452        $arrRecommendProductId = array(); 
     
    523523        $subImageFlag = false; 
    524524        for ($i = 1; $i <= PRODUCTSUB_MAX; $i++) { 
    525             if ($arrFile['sub_image' . $i]['filepath'] != "") { 
     525            if ($arrFile['sub_image' . $i]['filepath'] != '') { 
    526526                $subImageFlag = true; 
    527527            } 
     
    536536    function lfRegistFavoriteProduct($favorite_product_id,$customer_id) { 
    537537        // ログイン中のユーザが商品をお気に入りにいれる処理 
    538         if (!SC_Helper_DB_Ex::sfIsRecord('dtb_products', 'product_id', $favorite_product_id, "del_flg = 0 AND status = 1")) { 
     538        if (!SC_Helper_DB_Ex::sfIsRecord('dtb_products', 'product_id', $favorite_product_id, 'del_flg = 0 AND status = 1')) { 
    539539            SC_Utils_Ex::sfDispSiteError(PRODUCT_NOT_FOUND); 
    540540            return false; 
  • branches/version-2_12-dev/data/class/pages/products/LC_Page_Products_List.php

    r21514 r21515  
    183183                    // 商品IDの正当性チェック 
    184184                    if (!SC_Utils_Ex::sfIsInt($this->arrForm['product_id']) 
    185                         || !SC_Helper_DB_Ex::sfIsRecord('dtb_products', 'product_id', $this->arrForm['product_id'], "del_flg = 0 AND status = 1")) { 
     185                        || !SC_Helper_DB_Ex::sfIsRecord('dtb_products', 'product_id', $this->arrForm['product_id'], 'del_flg = 0 AND status = 1')) { 
    186186                        SC_Utils_Ex::sfDispSiteError(PRODUCT_NOT_FOUND); 
    187187                    } 
     
    271271            default: 
    272272                if (strlen($searchCondition['where_category']) >= 1) { 
    273                     $dtb_product_categories = '(SELECT * FROM dtb_product_categories WHERE '.$searchCondition['where_category'].")"; 
     273                    $dtb_product_categories = '(SELECT * FROM dtb_product_categories WHERE '.$searchCondition['where_category'].')'; 
    274274                    $arrval_order           = $searchCondition['arrvalCategory']; 
    275275                } else { 
  • branches/version-2_12-dev/data/class/pages/products/LC_Page_Products_Review.php

    r21514 r21515  
    190190        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    191191 
    192         return $objQuery->get('name', 'dtb_products', "product_id = ? ", array($product_id)); 
     192        return $objQuery->get('name', 'dtb_products', 'product_id = ? ', array($product_id)); 
    193193    } 
    194194 
Note: See TracChangeset for help on using the changeset viewer.