Ignore:
Timestamp:
2012/02/15 20:18:09 (14 years ago)
Author:
Seasoft
Message:

#1625 (typo修正・ソース整形・ソースコメントの改善)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/SC_Customer.php

    r21514 r21515  
    113113        //docomo用にデータを取り出す。 
    114114        if (SC_MobileUserAgent_Ex::getCarrier() == 'docomo') { 
    115             if($_SESSION['mobile']['phone_id'] == "" && strlen($_SESSION['mobile']['phone_id']) == 0) 
     115            if($_SESSION['mobile']['phone_id'] == '' && strlen($_SESSION['mobile']['phone_id']) == 0) 
    116116                $_SESSION['mobile']['phone_id'] = SC_MobileUserAgent_Ex::getId(); 
    117117        } 
     
    137137        //docomo用にデータを取り出す。 
    138138        if (SC_MobileUserAgent_Ex::getCarrier() == 'docomo') { 
    139             if($_SESSION['mobile']['phone_id'] == "" && strlen($_SESSION['mobile']['phone_id']) == 0) 
     139            if($_SESSION['mobile']['phone_id'] == '' && strlen($_SESSION['mobile']['phone_id']) == 0) 
    140140                $_SESSION['mobile']['phone_id'] = SC_MobileUserAgent_Ex::getId(); 
    141141        } 
     
    227227 
    228228            $objQuery = new SC_Query_Ex(); 
    229             $email = $objQuery->get('email', 'dtb_customer', "customer_id = ?", array($_SESSION['customer']['customer_id'])); 
     229            $email = $objQuery->get('email', 'dtb_customer', 'customer_id = ?', array($_SESSION['customer']['customer_id'])); 
    230230            if ($email == $_SESSION['customer']['email']) { 
    231231                // モバイルサイトの場合は携帯のメールアドレスが登録されていることもチェックする。 
    232232                // ただし $dont_check_email_mobile が true の場合はチェックしない。 
    233233                if (SC_Display_Ex::detectDevice() == DEVICE_TYPE_MOBILE && !$dont_check_email_mobile) { 
    234                     $email_mobile = $objQuery->get('email_mobile', 'dtb_customer', "customer_id = ?", array($_SESSION['customer']['customer_id'])); 
     234                    $email_mobile = $objQuery->get('email_mobile', 'dtb_customer', 'customer_id = ?', array($_SESSION['customer']['customer_id'])); 
    235235                    return isset($email_mobile); 
    236236                } 
     
    250250            return $point; 
    251251        } else { 
    252             return isset($_SESSION['customer'][$keyname]) ? $_SESSION['customer'][$keyname] : ""; 
     252            return isset($_SESSION['customer'][$keyname]) ? $_SESSION['customer'][$keyname] : ''; 
    253253        } 
    254254    } 
     
    303303    function updateOrderSummary($customer_id) { 
    304304        $objQuery = new SC_Query_Ex(); 
    305         $arrOrderSummary =  $objQuery->getRow('SUM( payment_total) as buy_total, COUNT(order_id) as buy_times,MAX( create_date) as last_buy_date, MIN(create_date) as first_buy_date','dtb_order',"customer_id = ? AND del_flg = 0 AND status <> ?",array($customer_id,ORDER_CANCEL)); 
     305        $arrOrderSummary =  $objQuery->getRow('SUM( payment_total) as buy_total, COUNT(order_id) as buy_times,MAX( create_date) as last_buy_date, MIN(create_date) as first_buy_date','dtb_order','customer_id = ? AND del_flg = 0 AND status <> ?',array($customer_id,ORDER_CANCEL)); 
    306306        $objQuery->update('dtb_customer',$arrOrderSummary,'customer_id = ?',array($customer_id)); 
    307307    } 
Note: See TracChangeset for help on using the changeset viewer.