Ignore:
Timestamp:
2012/01/06 19:54:03 (12 years ago)
Author:
kotani
Message:

Merge from version-2_11-dev

File:
1 edited

Legend:

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

    r21317 r21390  
    391391            // 同じidが存在すればupdate存在しなければinsert 
    392392            $where = "product_id = ?"; 
    393             $product_count = $objQuery->count("dtb_products", $where, array($sqlval['product_id'])); 
    394             if($product_count > 0){ 
     393            $product_exists = $objQuery->exists("dtb_products", $where, array($sqlval['product_id'])); 
     394            if ($product_exists) { 
    395395                $objQuery->update("dtb_products", $sqlval, $where, array($sqlval['product_id'])); 
    396             }else{ 
     396            } else { 
    397397                $sqlval['create_date'] = $arrList['update_date']; 
    398398                // INSERTの実行 
Note: See TracChangeset for help on using the changeset viewer.