Ignore:
Timestamp:
2007/09/06 10:57:57 (17 years ago)
Author:
nanasess
Message:

未定義変数の修正

File:
1 edited

Legend:

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

    r15600 r15624  
    7373 
    7474        if(isset($_GET['draw_image']) && $_GET['draw_image'] != ""){ 
    75             define(DRAW_IMAGE , true); 
     75            define('DRAW_IMAGE' , true); 
    7676        }else{ 
    77             define(DRAW_IMAGE , false); 
     77            define('DRAW_IMAGE' , false); 
    7878        } 
    7979 
     
    9999            // 入力値の変換 
    100100            $this->objFormParam->convParam(); 
    101             $this->arrErr = $this->lfCheckError($arrRet); 
     101            $this->arrErr = $this->lfCheckError(); 
    102102            $arrRet = $this->objFormParam->getHashArray(); 
    103103 
     
    185185                    // 期間別集計 
    186186                default: 
     187                    if (!isset($type)) $type = ""; 
    187188                    if($type == "") { 
    188189                        $type = 'day'; 
     
    334335 
    335336        // セッション情報に開始月度が保存されていない。 
    336         if($_SESSION['total']['startyear_m'] == "") { 
     337        if(empty($_SESSION['total']['startyear_m'])) { 
    337338            $list['startyear_m'] = $year; 
    338339            $list['startmonth_m'] = $month; 
     
    340341 
    341342        // セッション情報に開始日付、終了日付が保存されていない。 
    342         if($_SESSION['total']['startyear'] == "" && $_SESSION['total']['endyear'] == "") { 
     343        if(empty($_SESSION['total']['startyear']) && empty($_SESSION['total']['endyear'])) { 
    343344            $list['startyear'] = $year; 
    344345            $list['startmonth'] = $month; 
     
    554555    // グラフ用のPNGファイル名 
    555556    function lfGetGraphPng($keyname) { 
     557        if (!isset($_POST['search_startyear_m'])) $_POST['search_startyear_m'] = ""; 
    556558        if($_POST['search_startyear_m'] != "") { 
    557559            $pngname = sprintf("%s_%02d%02d.png", $keyname, substr($_POST['search_startyear_m'],2), $_POST['search_startmonth_m']); 
     
    806808        } 
    807809 
     810        if (!isset($where)) $where = ""; 
    808811 
    809812        // 取得日付の指定 
     
    822825            $where.= " order_date < date('" . $edate_next ."')"; 
    823826        } 
     827 
     828        if (!isset($arrval)) $arrval = array(); 
    824829 
    825830        // 検索結果の取得 
Note: See TracChangeset for help on using the changeset viewer.