Changeset 15397


Ignore:
Timestamp:
2007/08/28 22:18:06 (13 years ago)
Author:
nanasess
Message:

PHP5 対応
未定変数の修正

File:
1 edited

Legend:

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

    r15357 r15397  
    165165        $sql = "SELECT * FROM dtb_customer WHERE email ILIKE ? AND del_flg = 0 AND status = 2"; 
    166166        $result = $this->conn->getAll($sql, array($email)); 
    167         $data = $result[0]; 
     167        $data = isset($result[0]) ? $result[0] : ""; 
    168168        $this->customer_data = $data; 
    169169        $this->startSession(); 
     
    181181    // ログイン情報をセッションに登録し、ログに書き込む 
    182182    function startSession() { 
    183         sfDomainSessionStart(); 
     183        SC_Utils_Ex::sfDomainSessionStart(); 
    184184        $_SESSION['customer'] = $this->customer_data; 
    185185        // セッション情報の保存 
    186         gfPrintLog("access : user=".$this->customer_data['customer_id'] ."\t"."ip=". $_SERVER['REMOTE_HOST'], CUSTOMER_LOG_PATH ); 
     186        GC_Utils_Ex::gfPrintLog("access : user=".$this->customer_data['customer_id'] ."\t"."ip=". $_SERVER['REMOTE_HOST'], CUSTOMER_LOG_PATH ); 
    187187    } 
    188188 
     
    192192        unset($_SESSION['customer']); 
    193193        // ログに記録する 
    194         gfPrintLog("logout : user=".$this->customer_data['customer_id'] ."\t"."ip=". $_SERVER['REMOTE_HOST'], CUSTOMER_LOG_PATH ); 
     194        GC_Utils_Ex::gfPrintLog("logout : user=".$this->customer_data['customer_id'] ."\t"."ip=". $_SERVER['REMOTE_HOST'], CUSTOMER_LOG_PATH ); 
    195195    } 
    196196 
Note: See TracChangeset for help on using the changeset viewer.