Ignore:
Timestamp:
2007/10/29 16:21:10 (14 years ago)
Author:
nanasess
Message:

仮会員登録処理修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/helper/SC_Helper_Mail.php

    r16582 r16588  
    213213        $sqlval['template_id'] = $template_id; 
    214214        $sqlval['send_date'] = "Now()"; 
     215        if (!isset($_SESSION['member_id'])) $_SESSION['member_id'] = ""; 
    215216        if($_SESSION['member_id'] != "") { 
    216217            $sqlval['creator_id'] = $_SESSION['member_id']; 
     
    224225    } 
    225226 
    226     /* 会員のメルマガ登録があるかどうかのチェック(仮会員を含まない) */ 
     227    /* 会員登録があるかどうかのチェック(仮会員を含まない) */ 
    227228    function sfCheckCustomerMailMaga($email) { 
    228229        $col = "email, mailmaga_flg, customer_id"; 
    229230        $from = "dtb_customer"; 
    230         /* 
    231          * FIXME 会員を削除しても登録済と扱われてしまう? 
    232          */ 
    233         //$where = "email = ? AND status = 2"; 
    234         $where = "email = ? AND status = 2 AND del_flg = 0"; 
     231        $where = "(email = ? OR email_mobile = ?) AND status = 2 AND del_flg = 0"; 
    235232        $objQuery = new SC_Query(); 
    236233        $arrRet = $objQuery->select($col, $from, $where, array($email)); 
Note: See TracChangeset for help on using the changeset viewer.