- Timestamp:
- 2012/02/06 11:05:15 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/helper/SC_Helper_Mail.php
r21420 r21441 83 83 $objQuery = new SC_Query_Ex(); 84 84 85 if ($subject == "" && $header == "" && $footer == "") {85 if ($subject == "" && $header == "" && $footer == "") { 86 86 // メールテンプレート情報の取得 87 87 $where = "template_id = ?"; … … 132 132 133 133 //その他決済情報 134 if ($arrOrder['memo02'] != "") {134 if ($arrOrder['memo02'] != "") { 135 135 $arrOther = unserialize($arrOrder['memo02']); 136 136 137 foreach ($arrOther as $other_key => $other_val){138 if (SC_Utils_Ex::sfTrim($other_val['value']) == ""){137 foreach ($arrOther as $other_key => $other_val) { 138 if (SC_Utils_Ex::sfTrim($other_val['value']) == "") { 139 139 $arrOther[$other_key]['value'] = ""; 140 140 } … … 170 170 171 171 // 送信フラグ:trueの場合は、送信する。 172 if ($send) {172 if ($send) { 173 173 if ($objSendMail->sendMail()) { 174 174 $this->sfSaveMailHistory($order_id, $template_id, $tosubject, $body); … … 236 236 $sqlval['send_date'] = 'CURRENT_TIMESTAMP'; 237 237 if (!isset($_SESSION['member_id'])) $_SESSION['member_id'] = ""; 238 if ($_SESSION['member_id'] != "") {238 if ($_SESSION['member_id'] != "") { 239 239 $sqlval['creator_id'] = $_SESSION['member_id']; 240 240 } else { … … 256 256 $arrRet = $objQuery->select($col, $from, $where, array($email)); 257 257 // 会員のメールアドレスが登録されている 258 if (!empty($arrRet[0]['customer_id'])) {258 if (!empty($arrRet[0]['customer_id'])) { 259 259 return true; 260 260 } … … 272 272 function sfSendRegistMail($secret_key, $customer_id = '', $is_mobile = false) { 273 273 // 会員データの取得 274 if (SC_Utils_Ex::sfIsInt($customer_id)) {274 if (SC_Utils_Ex::sfIsInt($customer_id)) { 275 275 $arrCustomerData = SC_Helper_Customer_Ex::sfGetCustomerDataFromId($customer_id); 276 } else{276 } else { 277 277 $arrCustomerData = SC_Helper_Customer_Ex::sfGetCustomerDataFromId('', "secret_key = ?", array($secret_key)); 278 278 } 279 if (SC_Utils_Ex::isBlank($arrCustomerData)) {279 if (SC_Utils_Ex::isBlank($arrCustomerData)) { 280 280 return false; 281 281 } … … 294 294 295 295 // 仮会員が有効の場合 296 if (CUSTOMER_CONFIRM_MAIL == true and $arrCustomerData['status'] == 1) {296 if (CUSTOMER_CONFIRM_MAIL == true and $arrCustomerData['status'] == 1) { 297 297 $subject = $objHelperMail->sfMakeSubject('会員登録のご確認', $objMailText); 298 298 $toCustomerMail = $objMailText->fetch("mail_templates/customer_mail.tpl"); … … 315 315 ); 316 316 // 宛先の設定 317 if ($is_mobile) {317 if ($is_mobile) { 318 318 $to_addr = $arrCustomerData["email_mobile"]; 319 } else{319 } else { 320 320 $to_addr = $arrCustomerData['email']; 321 321 }
Note: See TracChangeset
for help on using the changeset viewer.
