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/frontparts/LC_Page_FrontParts_LoginCheck.php

    r21145 r21376  
    157157                    $objQuery = SC_Query_Ex::getSingletonInstance(); 
    158158                    $where = '(email = ? OR email_mobile = ?) AND status = 1 AND del_flg = 0'; 
    159                     $ret = $objQuery->count("dtb_customer", $where, array($arrForm['login_email'], $arrForm['login_email'])); 
     159                    $exists = $objQuery->exists("dtb_customer", $where, array($arrForm['login_email'], $arrForm['login_email'])); 
    160160                    // ログインエラー表示 TODO リファクタリング 
    161                     if($ret > 0) { 
     161                    if ($exists) { 
    162162                        if (SC_Display_Ex::detectDevice() === DEVICE_TYPE_SMARTPHONE) { 
    163163                            echo $this->lfGetErrorMessage(TEMP_LOGIN_ERROR); 
Note: See TracChangeset for help on using the changeset viewer.