Changeset 20324


Ignore:
Timestamp:
2011/02/22 14:01:13 (13 years ago)
Author:
kimoto
Message:

バグ修正 #1034

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_DeliveryAddr.php

    r20157 r20324  
    134134 
    135135                if ($_GET['other_deliv_id'] != ""){ 
     136                    $arrOtherDeliv = $this->lfGetOtherDeliv($objCustomer->getValue("customer_id"), $_SESSION['other_deliv_id']); 
     137 
    136138                    //不正アクセス判定 
    137                     $flag = $objQuery->count("dtb_other_deliv", 
    138                                              "customer_id = ? AND other_deliv_id = ?", 
    139                                              array($objCustomer->getValue("customer_id"), 
    140                                              $_SESSION['other_deliv_id'])); 
    141  
    142                     if (!$objCustomer->isLoginSuccess(true) || $flag == 0){ 
     139                    if (!$objCustomer->isLoginSuccess(true) 
     140                        || count($arrOtherDeliv) == 0){ 
    143141                        SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR); 
    144142                    } 
    145143 
    146144                    //別のお届け先情報取得 
    147                     $arrOtherDeliv = $objQuery->select("*", "dtb_other_deliv", "other_deliv_id = ? ", array($_SESSION['other_deliv_id'])); 
    148145                    $this->arrForm = $arrOtherDeliv[0]; 
    149146                } 
     
    167164    } 
    168165 
     166 
     167    /** 
     168     * ほかのお届け先を取得する 
     169     * 
     170     * @param mixed $customer_id 
     171     * @param mixed $other_deliv_id 
     172     * @access private 
     173     * @return array() 
     174     */ 
     175    function lfGetOtherDeliv($customer_id, $other_deliv_id) { 
     176        $objQuery =& SC_Query::getSingletonInstance(); 
     177        return $objQuery->select("*", "dtb_other_deliv", "customer_id = ? AND other_deliv_id = ?", array($customer_id, $other_deliv_id)); 
     178 
     179         $arrOtherDeliv[0]; 
     180    } 
    169181 
    170182    /* 登録実行 */ 
Note: See TracChangeset for help on using the changeset viewer.