Changeset 21646
- Timestamp:
- 2012/03/14 21:34:50 (12 years ago)
- Location:
- branches/version-2_12-dev/data/class
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/SC_Product.php
r21640 r21646 208 208 function getDetail($productId) { 209 209 $objQuery =& SC_Query_Ex::getSingletonInstance(); 210 $result = $objQuery-> select('*', $this->alldtlSQL('product_id = ?'),210 $result = $objQuery->getRow('*', $this->alldtlSQL('product_id = ?'), 211 211 'product_id = ?', 212 212 array($productId, $productId)); 213 return $result[0];213 return (array)$result; 214 214 } 215 215 … … 395 395 $objQuery->setWhere('product_class_id = ? AND T1.del_flg = 0'); 396 396 $arrRes = $this->getProductsClassByQuery($objQuery, $productClassId); 397 return $arrRes[0];397 return (array)$arrRes[0]; 398 398 } 399 399 -
branches/version-2_12-dev/data/class/util/SC_Utils.php
r21634 r21646 738 738 $arrRet = array(); 739 739 foreach ($array as $key1 => $arr1) { 740 if (!is_array($arr1)) break 1; 740 741 $index = 0; 741 742 foreach ($arr1 as $key2 => $val) {
Note: See TracChangeset
for help on using the changeset viewer.