Ignore:
Timestamp:
2012/02/28 22:35:14 (12 years ago)
Author:
Seasoft
Message:

#1669 (変数の初期化漏れ)
#1613 (typo修正・ソース整形・ソースコメントの改善)

Location:
branches/version-2_12-dev/data/class/pages/products
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/pages/products/LC_Page_Products_Detail.php

    r21515 r21563  
    505505        $from = 'dtb_review'; 
    506506        $where = 'del_flg = 0 AND status = 1 AND product_id = ? ORDER BY create_date DESC LIMIT ' . REVIEW_REGIST_MAX; 
    507         $arrval[] = $id; 
    508         $arrReview = $objQuery->select($col, $from, $where, $arrval); 
     507        $arrWhereVal = array($id); 
     508        $arrReview = $objQuery->select($col, $from, $where, $arrWhereVal); 
    509509        return $arrReview; 
    510510    } 
  • branches/version-2_12-dev/data/class/pages/products/LC_Page_Products_List.php

    r21527 r21563  
    254254    function lfGetProductsList($searchCondition, $disp_number, $startno, $linemax, &$objProduct) { 
    255255 
    256         $arrval_order = array(); 
     256        $arrOrderVal = array(); 
    257257 
    258258        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
     
    272272                if (strlen($searchCondition['where_category']) >= 1) { 
    273273                    $dtb_product_categories = '(SELECT * FROM dtb_product_categories WHERE '.$searchCondition['where_category'].')'; 
    274                     $arrval_order           = $searchCondition['arrvalCategory']; 
     274                    $arrOrderVal           = $searchCondition['arrvalCategory']; 
    275275                } else { 
    276276                    $dtb_product_categories = 'dtb_product_categories'; 
     
    298298 
    299299        // 表示すべきIDとそのIDの並び順を一気に取得 
    300         $arrProductId = $objProduct->findProductIdsOrder($objQuery, array_merge($searchCondition['arrval'], $arrval_order)); 
     300        $arrProductId = $objProduct->findProductIdsOrder($objQuery, array_merge($searchCondition['arrval'], $arrOrderVal)); 
    301301 
    302302        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
Note: See TracChangeset for help on using the changeset viewer.