Changeset 21232


Ignore:
Timestamp:
2011/09/05 00:44:01 (9 years ago)
Author:
Seasoft
Message:

#1473 (無駄な処理の削除・縮小)

  • PHP では null + 1 は 1 のため、UPDATE する必要なし
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_11-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents.php

    r21185 r21232  
    215215        $sqlval['update_date'] = 'CURRENT_TIMESTAMP'; 
    216216        $objQuery->insert($table, $sqlval); 
    217  
    218         // 最初の1件目の登録はrankにNULLが入るので対策 
    219         $sqlval = array(); 
    220         $sqlval['rank'] = 1; 
    221         $where = ' del_flg = 0 AND rank IS NULL'; 
    222         $objQuery->update($table, $sqlval, $where); 
    223217    } 
    224218 
Note: See TracChangeset for help on using the changeset viewer.