Ignore:
Timestamp:
2012/03/14 21:34:50 (14 years ago)
Author:
Seasoft
Message:

#1679 (PHP 警告撲滅)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/SC_Product.php

    r21640 r21646  
    208208    function getDetail($productId) { 
    209209        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    210         $result = $objQuery->select('*', $this->alldtlSQL('product_id = ?'), 
     210        $result = $objQuery->getRow('*', $this->alldtlSQL('product_id = ?'), 
    211211                                    'product_id = ?', 
    212212                                    array($productId, $productId)); 
    213         return $result[0]; 
     213        return (array)$result; 
    214214    } 
    215215 
     
    395395        $objQuery->setWhere('product_class_id = ? AND T1.del_flg = 0'); 
    396396        $arrRes = $this->getProductsClassByQuery($objQuery, $productClassId); 
    397         return $arrRes[0]; 
     397        return (array)$arrRes[0]; 
    398398    } 
    399399 
Note: See TracChangeset for help on using the changeset viewer.