Changeset 21646


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

#1679 (PHP 警告撲滅)

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  
    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 
  • branches/version-2_12-dev/data/class/util/SC_Utils.php

    r21634 r21646  
    738738        $arrRet = array(); 
    739739        foreach ($array as $key1 => $arr1) { 
     740            if (!is_array($arr1)) break 1; 
    740741            $index = 0; 
    741742            foreach ($arr1 as $key2 => $val) { 
Note: See TracChangeset for help on using the changeset viewer.