Ignore:
Timestamp:
2011/09/25 13:15:51 (13 years ago)
Author:
Seasoft
Message:

#1484 (SC_Product#lists の第2引数($arrVal)が実質的に無効)
#1449 (不要な関数・処理の整理)
#1421 (Fix typo.)
#1463 (コーディング規則に従っていない)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_11-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Recommend.php

    r21215 r21256  
    101101            // 商品一覧を取得 
    102102            // where条件生成&セット 
    103             $arrBestProductIds = array(); 
     103            $arrProductId = array(); 
    104104            $where = 'product_id IN ('; 
    105105            foreach ($arrBestProducts as $key => $val) { 
    106                 $arrBestProductIds[] = $val['product_id']; 
     106                $arrProductId[] = $val['product_id']; 
    107107            } 
    108             $where .= implode(', ', $arrBestProductIds); 
    109             $where .= ')'; 
    110             $where .= ' AND del_flg = 0'; // 商品規格の削除フラグ 
    111             $objQuery->setWhere($where); 
    112108            // 取得 
    113             $arrTmp = $objProduct->lists($objQuery); 
     109            $arrTmp = $objProduct->getListByProductIds($objQuery, $arrProductId); 
    114110            foreach ($arrTmp as $key => $arrRow) { 
    115111                $arrProductList[$arrRow['product_id']] = $arrRow; 
Note: See TracChangeset for help on using the changeset viewer.