Ignore:
Timestamp:
2012/03/26 21:44:52 (14 years ago)
Author:
Seasoft
Message:

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

File:
1 edited

Legend:

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

    r21623 r21684  
    7171 
    7272        // テーブルが無ければエラー 
    73         if(!in_array($table_name, $objQuery->listTables())) return false; 
     73        if (!in_array($table_name, $objQuery->listTables())) return false; 
    7474 
    7575        // 正常に接続されている場合 
     
    10641064 
    10651065        //入れ替え先の順位が入れ換え元の順位より大きい場合 
    1066         if($position > $rank) $term = 'rank - 1'; 
     1066        if ($position > $rank) $term = 'rank - 1'; 
    10671067 
    10681068        //入れ替え先の順位が入れ換え元の順位より小さい場合 
    1069         if($position < $rank) $term = 'rank + 1'; 
     1069        if ($position < $rank) $term = 'rank + 1'; 
    10701070 
    10711071        // XXX 入れ替え先の順位が入れ替え元の順位と同じ場合 
     
    10781078        } 
    10791079 
    1080         if($position > $rank) $objQuery->exec($sql, array($rank + 1, $position)); 
    1081         if($position < $rank) $objQuery->exec($sql, array($position, $rank - 1)); 
     1080        if ($position > $rank) $objQuery->exec($sql, array($rank + 1, $position)); 
     1081        if ($position < $rank) $objQuery->exec($sql, array($position, $rank - 1)); 
    10821082 
    10831083        // 指定した順位へrankを書き換える。 
Note: See TracChangeset for help on using the changeset viewer.