Changeset 22593


Ignore:
Timestamp:
2013/03/01 21:30:35 (11 years ago)
Author:
pineray
Message:

#2044 (無駄な処理を改善する for 2.12.4)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/SC_Product.php

    r22567 r22593  
    183183 
    184184        // 配列のキーを商品IDに 
    185         $arrTmp = array(); 
    186         foreach ($arrProducts as $arrProduct) { 
    187             $arrTmp[$arrProduct['product_id']] = $arrProduct; 
    188         } 
    189         $arrProducts =& $arrTmp; 
    190         unset($arrTmp); 
     185        $arrProducts = SC_Utils_Ex::makeArrayIDToKey('product_id', $arrProducts); 
    191186 
    192187        // SC_Query::setOrder() の指定がない場合、$arrProductId で指定された商品IDの順に配列要素を並び替え 
Note: See TracChangeset for help on using the changeset viewer.