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

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

File:
1 edited

Legend:

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

    r21538 r21563  
    493493                $arrProduct = $objQuery->select('product_id', 'dtb_products', 'product_id = ?', array($arrList[$keyname])); 
    494494                if ($arrProduct[0]['product_id'] != '') { 
    495                     $arrval['product_id'] = $product_id; 
    496                     $arrval['recommend_product_id'] = $arrProduct[0]['product_id']; 
    497                     $arrval['comment'] = $arrList[$comment_key]; 
    498                     $arrval['update_date'] = $arrList['update_date']; 
    499                     $arrval['create_date'] = $arrList['update_date']; 
    500                     $arrval['creator_id'] = $_SESSION['member_id']; 
    501                     $arrval['rank'] = RECOMMEND_PRODUCT_MAX - $i + 1; 
    502                     $objQuery->insert('dtb_recommend_products', $arrval); 
     495                    $arrWhereVal = array(); 
     496                    $arrWhereVal['product_id'] = $product_id; 
     497                    $arrWhereVal['recommend_product_id'] = $arrProduct[0]['product_id']; 
     498                    $arrWhereVal['comment'] = $arrList[$comment_key]; 
     499                    $arrWhereVal['update_date'] = $arrList['update_date']; 
     500                    $arrWhereVal['create_date'] = $arrList['update_date']; 
     501                    $arrWhereVal['creator_id'] = $_SESSION['member_id']; 
     502                    $arrWhereVal['rank'] = RECOMMEND_PRODUCT_MAX - $i + 1; 
     503                    $objQuery->insert('dtb_recommend_products', $arrWhereVal); 
    503504                } 
    504505            } 
Note: See TracChangeset for help on using the changeset viewer.