Changeset 15651


Ignore:
Timestamp:
2007/09/07 18:15:14 (13 years ago)
Author:
nanasess
Message:

クラス化に伴う修正

  • 未定義変数の修正
  • bugfix
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/pages/admin/mail/LC_Page_Admin_Mail.php

    r15647 r15651  
    271271 
    272272            //-- 時刻設定の取得 
    273             $this->arrNowDate['year'] = $_POST['send_year']; 
    274             $this->arrNowDate['month'] = $_POST['send_month']; 
    275             $this->arrNowDate['day'] = $_POST['send_day']; 
    276             $this->arrNowDate['hour'] = $_POST['send_hour']; 
    277             $this->arrNowDate['minutes'] = $_POST['send_minutes']; 
     273            $this->arrNowDate['year'] = isset($_POST['send_year']) ? $_POST['send_year'] : ""; 
     274            $this->arrNowDate['month'] = isset($_POST['send_month']) ? $_POST['send_month'] : ""; 
     275            $this->arrNowDate['day'] = isset($_POST['send_day']) ? $_POST['send_month'] : ""; 
     276            $this->arrNowDate['hour'] = isset($_POST['send_hour']) ? $_POST['send_hour'] : ""; 
     277            $this->arrNowDate['minutes'] = isset($_POST['send_minutes']) ? $_POST['send_minutes'] : ""; 
    278278 
    279279            //-- 入力エラーのチェック 
     
    282282            //-- 検索開始 
    283283            if ( ! is_array($this->arrErr)) { 
    284                 $this->list_data['name'] = SC_Utils_Ex::sfManualEscape($this->list_data['name']); 
     284                $this->list_data['name'] = isset($this->list_data['name']) ? SC_Utils_Ex::sfManualEscape($this->list_data['name']) : ""; 
    285285                $this->arrHidden = $this->lfGetHidden($this->list_data); // hidden要素作成 
    286286 
     
    319319        case 'regist_complete': 
    320320            //-- 入力値コンバート 
    321             $arrCheckColumn = array_merge( $this->arrSearchColumn, $this->arrRegistColumn ); 
     321            $this->arrCheckColumn = array_merge( $this->arrSearchColumn, $this->arrRegistColumn ); 
    322322            $this->list_data = $this->lfConvertParam($_POST, $this->arrCheckColumn); 
    323323 
     
    332332            //-- 検索開始 
    333333            if ( ! is_array($this->arrErr)) { 
    334                 $this->list_data['name'] = SC_Utils_Ex::sfManualEscape($this->list_data['name']); 
     334                $this->list_data['name'] = 
     335                    isset($this->list_data['name']) 
     336                    ? SC_Utils_Ex::sfManualEscape($this->list_data['name']) : ""; 
     337 
    335338                if ( $_POST['mode'] == 'regist_confirm'){ 
    336339                    $this->tpl_mainpage = 'mail/input_confirm.tpl'; 
     
    464467 
    465468        $objQuery = new SC_Query(); 
    466         $objSelect = new SC_CustomerList( lfConvertParam($arrData, $this->arrSearchColumn), "magazine" ); 
    467  
    468         $search_data = $conn->getAll($objSelect->getListMailMagazine(lfGetIsMobile($_POST['mail_type'])), $objSelect->arrVal); 
     469        $objSelect = new SC_CustomerList($this->lfConvertParam($arrData, $this->arrSearchColumn), "magazine" ); 
     470 
     471        $search_data = $conn->getAll($objSelect->getListMailMagazine($this->lfGetIsMobile($_POST['mail_type'])), $objSelect->arrVal); 
    469472        $dataCnt = count($search_data); 
    470473 
     
    578581    function lfGetTemplateMethod($conn, $templata_id){ 
    579582 
    580         if ( sfCheckNumLength($template_id) ){ 
     583        if ( SC_Utils_Ex::sfCheckNumLength($template_id) ){ 
    581584            $sql = "SELECT mail_method FROM dtb_mailmaga_template WEHRE template_id = ?"; 
    582585        } 
Note: See TracChangeset for help on using the changeset viewer.