Ignore:
Timestamp:
2011/12/26 17:11:08 (12 years ago)
Author:
Seasoft
Message:

#1582 (SC_Query 一致レコードの有無を返す機能を追加 (パフォーマンス改善))
#1526 (typo修正・ソース整形・ソースコメントの改善)
#1449 (不要な関数・処理の整理)

File:
1 edited

Legend:

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

    r21185 r21376  
    166166        // DBにすでに登録されていないかチェック 
    167167        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    168         $count = $objQuery->count("dtb_templates", "template_code = ?", array($template_code)); 
    169         if ($count > 0) { 
     168        $exists = $objQuery->exists("dtb_templates", "template_code = ?", array($template_code)); 
     169        if ($exists) { 
    170170            $arrErr['template_code'] = "※ すでに登録されているテンプレートコードです。<br/>"; 
    171171        } 
Note: See TracChangeset for help on using the changeset viewer.