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/system/LC_Page_Admin_System_Input.php

    r21250 r21376  
    279279     */ 
    280280    function memberDataExists($where, $val) { 
     281        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
     282 
    281283        $table = 'dtb_member'; 
    282284 
    283         $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    284         $count = $objQuery->count($table, $where, array($val)); 
    285  
    286         if ($count > 0) return true; 
    287         return false; 
     285        $exists = $objQuery->exists($table, $where, array($val)); 
     286        return $exists; 
    288287    } 
    289288 
Note: See TracChangeset for help on using the changeset viewer.