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/SC_Customer.php

    r21259 r21376  
    121121 
    122122        // 携帯端末IDが一致し、本登録された会員を検索する。 
    123         $sql = 'SELECT count(*) FROM dtb_customer WHERE mobile_phone_id = ? AND del_flg = 0 AND status = 2'; 
    124         $objQuery = new SC_Query_Ex(); 
    125         $result = $objQuery->count("dtb_customer", "mobile_phone_id = ? AND del_flg = 0 AND status = 2", array($_SESSION['mobile']['phone_id'])); 
    126         return $result > 0; 
     123        $objQuery = new SC_Query_Ex(); 
     124        $exists = $objQuery->exists("dtb_customer", "mobile_phone_id = ? AND del_flg = 0 AND status = 2", array($_SESSION['mobile']['phone_id'])); 
     125        return $exists; 
    127126    } 
    128127 
Note: See TracChangeset for help on using the changeset viewer.