Changeset 20324
- Timestamp:
- 2011/02/22 14:01:13 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_DeliveryAddr.php
r20157 r20324 134 134 135 135 if ($_GET['other_deliv_id'] != ""){ 136 $arrOtherDeliv = $this->lfGetOtherDeliv($objCustomer->getValue("customer_id"), $_SESSION['other_deliv_id']); 137 136 138 //不正アクセス判定 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){ 143 141 SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR); 144 142 } 145 143 146 144 //別のお届け先情報取得 147 $arrOtherDeliv = $objQuery->select("*", "dtb_other_deliv", "other_deliv_id = ? ", array($_SESSION['other_deliv_id']));148 145 $this->arrForm = $arrOtherDeliv[0]; 149 146 } … … 167 164 } 168 165 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 } 169 181 170 182 /* 登録実行 */
Note: See TracChangeset
for help on using the changeset viewer.