Changeset 21324
- Timestamp:
- 2011/11/10 22:23:33 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_11-dev/data/class/helper/SC_Helper_DB.php
r21323 r21324 657 657 // 在庫無し商品の非表示 658 658 if (NOSTOCK_HIDDEN) { 659 $sql_where_dtl = ' stock >= 1 OR stock_unlimited = 1';659 $sql_where_dtl = '(stock >= 1 OR stock_unlimited = 1)'; 660 660 $from = $objProduct->alldtlSQL($sql_where_dtl); 661 661 }else{ … … 773 773 $where = "($sql_where) AND ($sql_where_product_ids)"; 774 774 775 $where_products_class = ''; 775 776 if (NOSTOCK_HIDDEN) { 776 $ sql_where_product_ids .= ' AND stock >= 1 OR stock_unlimited = 1';777 } 778 779 $from = $objProduct->alldtlSQL($ sql_where_product_ids);777 $where_products_class .= '(stock >= 1 OR stock_unlimited = 1)'; 778 } 779 780 $from = $objProduct->alldtlSQL($where_products_class); 780 781 $sql = "SELECT count(*) FROM $from WHERE $where "; 781 782 $arrUpdateData[ $category_id ] = $objQuery->getOne($sql, $arrval);
Note: See TracChangeset
for help on using the changeset viewer.