Ignore:
Timestamp:
2012/02/06 21:38:41 (14 years ago)
Author:
Seasoft
Message:

#1613 (ソース整形・ソースコメントの改善)

  • 無意味なスペースを削除
File:
1 edited

Legend:

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

    r21445 r21446  
    10731073 
    10741074        //入れ替え先の順位が入れ換え元の順位より大きい場合 
    1075         if( $position > $rank) $term = "rank - 1"; 
     1075        if($position > $rank) $term = "rank - 1"; 
    10761076 
    10771077        //入れ替え先の順位が入れ換え元の順位より小さい場合 
    1078         if( $position < $rank) $term = "rank + 1"; 
     1078        if($position < $rank) $term = "rank + 1"; 
    10791079 
    10801080        // XXX 入れ替え先の順位が入れ替え元の順位と同じ場合 
     
    10871087        } 
    10881088 
    1089         if( $position > $rank) $objQuery->exec( $sql, array( $rank + 1, $position)); 
    1090         if( $position < $rank) $objQuery->exec( $sql, array( $position, $rank - 1)); 
     1089        if($position > $rank) $objQuery->exec($sql, array($rank + 1, $position)); 
     1090        if($position < $rank) $objQuery->exec($sql, array($position, $rank - 1)); 
    10911091 
    10921092        // 指定した順位へrankを書き換える。 
     
    10961096        } 
    10971097 
    1098         $objQuery->exec( $sql, array( $position, $keyId)); 
     1098        $objQuery->exec($sql, array($position, $keyId)); 
    10991099        $objQuery->commit(); 
    11001100    } 
Note: See TracChangeset for help on using the changeset viewer.