Ignore:
Timestamp:
2011/02/03 18:40:05 (13 years ago)
Author:
yomoro
Message:

#986 リファクタリング

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Login.php

    r19805 r20076  
    7979            // クッキー判定 
    8080            $this->tpl_login_email = $objCookie->getCookie('login_email'); 
    81             if($this->tpl_login_email != "") { 
    82                 $this->tpl_login_memory = "1"; 
     81            if($this->tpl_login_email != '') { 
     82                $this->tpl_login_memory = '1'; 
    8383            } 
    84  
    8584            // POSTされてきたIDがある場合は優先する。 
    86             if($_POST['login_email'] != "") { 
     85            if( isset($_POST['login_email']) && $_POST['login_email'] != '') { 
    8786                $this->tpl_login_email = $_POST['login_email']; 
    8887            } 
     
    102101    } 
    103102 
     103    /** 
     104     * lfCheckDisableLogout. 
     105     * 
     106     * @return boolean 
     107     */ 
    104108    function lfCheckDisableLogout() { 
    105109        $masterData = new SC_DB_MasterData_Ex(); 
    106         $arrDISABLE_LOGOUT = $masterData->getMasterData("mtb_disable_logout"); 
    107         $nowpage = $_SERVER['PHP_SELF']; 
     110        $arrDisableLogout = $masterData->getMasterData('mtb_disable_logout'); 
     111         
     112        $current_page = $_SERVER['PHP_SELF']; 
    108113 
    109         foreach($arrDISABLE_LOGOUT as $val) { 
    110             if($nowpage == $val) { 
     114        foreach($arrDisableLogout as $val) { 
     115            if($current_page == $val) { 
    111116                return true; 
    112117            } 
Note: See TracChangeset for help on using the changeset viewer.