Ignore:
Timestamp:
2013/02/06 20:32:57 (11 years ago)
Author:
Seasoft
Message:

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

  • SC_Query::select -> SC_Query::getCol
  • 同一文字列定数値の重複記述を回避

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

File:
1 edited

Legend:

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

    r22486 r22507  
    375375        } 
    376376 
    377         $searchCondition['where_for_count'] = $searchCondition['where']; 
    378  
    379377        // 在庫無し商品の非表示 
    380378        if (NOSTOCK_HIDDEN) { 
    381379            $searchCondition['where'] .= ' AND EXISTS(SELECT * FROM dtb_products_class WHERE product_id = alldtl.product_id AND del_flg = 0 AND (stock >= 1 OR stock_unlimited = 1))'; 
    382             $searchCondition['where_for_count'] .= ' AND EXISTS(SELECT * FROM dtb_products_class WHERE product_id = alldtl.product_id AND del_flg = 0 AND (stock >= 1 OR stock_unlimited = 1))'; 
    383         } 
     380        } 
     381 
     382        // XXX 一時期内容が異なっていたことがあるので別要素にも格納している。 
     383        $searchCondition['where_for_count'] = $searchCondition['where']; 
    384384 
    385385        return $searchCondition; 
Note: See TracChangeset for help on using the changeset viewer.