Changeset 17766


Ignore:
Timestamp:
2009/02/13 21:41:11 (15 years ago)
Author:
zeniya
Message:

EC-CUBE2.4改修 #411

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_4/data/class/helper/SC_Helper_DB.php

    r17655 r17766  
    12021202 
    12031203        $max = $objQuery->max($tableName, "rank", $where); 
    1204         // 値の調整(逆順) 
     1204        // 値の調整(逆順) 
    12051205        if($pos > $max) { 
    12061206            $position = 1; 
     
    12101210            $position = $max - $pos + 1; 
    12111211        } 
    1212          
     1212 
    12131213        //入れ替え先の順位が入れ換え元の順位より大きい場合 
    12141214        if( $position > $rank ) $term = "rank - 1"; 
     
    12251225            $sql.= " AND $where"; 
    12261226        } 
    1227         if( $position > $rank ) $objQuery->exec( $sql, array($rank, $position)); 
     1227        if( $position > $rank ) $objQuery->exec( $sql, array($rank, $position)); 
    12281228        if( $position < $rank ) $objQuery->exec( $sql, array($position, $rank)); 
    1229         // 指定した順位へrankを書き換える。 
     1229           // 指定した順位へrankを書き換える。 
    12301230        $sql  = "UPDATE $tableName SET rank = ? WHERE $keyIdColumn = ? "; 
    12311231        if($where != "") { 
    12321232            $sql.= " AND $where"; 
    12331233        } 
    1234         $objQuery->exec( $sql, array( $position, $keyId ) ); 
     1234        $objQuery->exec( $sql, array( $position, $keyId ) ); 
    12351235        $objQuery->commit(); 
    12361236    } 
     
    13741374     * @return string 指定の都道府県, 支払い方法の配送料金 
    13751375     */ 
    1376     function sfGetDelivFee($pref, $payment_id = "") { 
     1376    function sfGetDelivFee($arrData) { 
     1377        $pref = $arrData['deliv_pref']; 
     1378        $payment_id = isset($arrData['payment_id']) ? $arrData['payment_id'] : ""; 
     1379 
    13771380        $objQuery = new SC_Query(); 
    13781381 
     
    14441447        if (OPTION_DELIV_FEE == 1) { 
    14451448            // 送料の合計を計算する 
    1446             $arrData['deliv_fee'] 
    1447                 += $this->sfGetDelivFee($arrData['deliv_pref'], 
    1448                                            $arrData['payment_id']); 
    1449  
     1449            $arrData['deliv_fee'] += $this->sfGetDelivFee($arrData); 
    14501450        } 
    14511451 
Note: See TracChangeset for help on using the changeset viewer.