Changeset 21320
- Timestamp:
- 2011/11/10 07:59:22 (12 years ago)
- Location:
- branches/version-2_11-dev/data/class
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_11-dev/data/class/SC_Product.php
r21315 r21320 664 664 * 商品詳細の SQL を取得する. 665 665 * 666 * @param string $where 商品詳細の WHERE 句666 * @param string $where_products_class 商品詳細の WHERE 句 667 667 * @return string 商品詳細の SQL 668 668 */ 669 function alldtlSQL($where = "") {670 $where_clause = "";671 if (!SC_Utils_Ex::isBlank($where )) {672 $where_clause = " WHERE " . $where;669 function alldtlSQL($where_products_class = '') { 670 $where_clause = ''; 671 if (!SC_Utils_Ex::isBlank($where_products_class)) { 672 $where_clause = 'WHERE ' . $where_products_class; 673 673 } 674 674 /* -
branches/version-2_11-dev/data/class/helper/SC_Helper_DB.php
r21319 r21320 657 657 // 在庫無し商品の非表示 658 658 if (NOSTOCK_HIDDEN) { 659 $sql_where_dtl = 'stock _max >= 1 OR stock_unlimited_max= 1';659 $sql_where_dtl = 'stock >= 1 OR stock_unlimited = 1'; 660 660 $from = $objProduct->alldtlSQL($sql_where_dtl); 661 661 }else{ 662 $from = " dtb_products as alldtl ";662 $from = 'dtb_products as alldtl'; 663 663 } 664 664
Note: See TracChangeset
for help on using the changeset viewer.