Changeset 21564 for branches/version-2_12-dev/data/class/SC_Product.php
- Timestamp:
- 2012/03/01 10:06:28 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/SC_Product.php
r21527 r21564 173 173 } 174 174 175 $where = 'alldtl.product_id IN (' . implode(',', array_fill(0, count($arrProductId), '?')) . ')';175 $where = 'alldtl.product_id IN (' . SC_Utils_Ex::repeatStrWithSeparator('?', count($arrProductId)) . ')'; 176 176 $where .= ' AND alldtl.del_flg = 0'; 177 177 … … 410 410 } 411 411 $objQuery =& SC_Query_Ex::getSingletonInstance(); 412 $where = 'product_id IN (' . implode(', ', array_pad(array(), count($productIds), '?')) . ')';412 $where = 'product_id IN (' . SC_Utils_Ex::repeatStrWithSeparator('?', count($productIds)) . ')'; 413 413 if (!$has_deleted) { 414 414 $where .= ' AND T1.del_flg = 0'; … … 443 443 $cols = 'product_id, product_status_id'; 444 444 $from = 'dtb_product_status'; 445 $where = 'del_flg = 0 AND product_id IN (' . implode(', ', array_pad(array(), count($productIds), '?')) . ')';445 $where = 'del_flg = 0 AND product_id IN (' . SC_Utils_Ex::repeatStrWithSeparator('?', count($productIds)) . ')'; 446 446 $productStatus = $objQuery->select($cols, $from, $where, $productIds); 447 447 $results = array();
Note: See TracChangeset
for help on using the changeset viewer.