Ignore:
Timestamp:
2007/08/24 22:21:01 (17 years ago)
Author:
nanasess
Message:

未定義変数を修正

File:
1 edited

Legend:

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

    r15177 r15357  
    198198    function isLoginSuccess($dont_check_email_mobile = false) { 
    199199        // ログイン時のメールアドレスとDBのメールアドレスが一致している場合 
    200         if(SC_Utils_Ex::sfIsInt($_SESSION['customer']['customer_id'])) { 
     200        if(isset($_SESSION['customer']['customer_id']) 
     201            && SC_Utils_Ex::sfIsInt($_SESSION['customer']['customer_id'])) { 
     202 
    201203            $objQuery = new SC_Query(); 
    202204            $email = $objQuery->get("dtb_customer", "email", "customer_id = ?", array($_SESSION['customer']['customer_id'])); 
     
    216218    // パラメータの取得 
    217219    function getValue($keyname) { 
    218         return $_SESSION['customer'][$keyname]; 
     220        return isset($_SESSION['customer'][$keyname]) ? $_SESSION['customer'][$keyname] : ""; 
    219221    } 
    220222 
     
    231233    // 誕生日月であるかどうかの判定 
    232234    function isBirthMonth() { 
    233         $arrRet = split("[- :/]", $_SESSION['customer']['birth']); 
    234         $birth_month = intval($arrRet[1]); 
    235         $now_month = intval(date("m")); 
    236  
    237         if($birth_month == $now_month) { 
    238             return true; 
     235        if (isset($_SESSION['customer']['birth'])) { 
     236            $arrRet = split("[- :/]", $_SESSION['customer']['birth']); 
     237            $birth_month = intval($arrRet[1]); 
     238            $now_month = intval(date("m")); 
     239 
     240            if($birth_month == $now_month) { 
     241                return true; 
     242            } 
    239243        } 
    240244        return false; 
Note: See TracChangeset for help on using the changeset viewer.