Changeset 16225


Ignore:
Timestamp:
2007/10/01 16:54:46 (16 years ago)
Author:
nanasess
Message:

未定義変数の修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/pages/products/LC_Page_Products_List.php

    r16165 r16225  
    201201 
    202202        //表示件数の選択 
    203         if(SC_Utils_Ex::sfIsInt($_REQUEST['disp_number'])) { 
     203        if(isset($_REQUEST['disp_number']) 
     204           && SC_Utils_Ex::sfIsInt($_REQUEST['disp_number'])) { 
    204205            $this->disp_number = $_REQUEST['disp_number']; 
    205206        } else { 
     
    209210 
    210211        //表示順序の保存 
    211         $this->orderby = $_REQUEST['orderby']; 
     212        $this->orderby = isset($_REQUEST['orderby']) ? $_REQUEST['orderby'] : ""; 
    212213 
    213214        // GETのカテゴリIDを元に正しいカテゴリIDを取得する。 
     
    217218        $tpl_subtitle = ""; 
    218219        $tpl_search_mode = false; 
     220 
     221        if (!isset($_GET['mode'])) $_GET['mode'] = ""; 
     222        if (!isset($_POST['mode'])) $_POST['mode'] = ""; 
     223        if (!isset($_GET['name'])) $_GET['name'] = ""; 
     224        if (!isset($_REQUEST['orderby'])) $_REQUEST['orderby'] = ""; 
     225 
    219226        if($_GET['mode'] == 'search'){ 
    220227            $tpl_subtitle = "検索結果"; 
     
    306313                continue; 
    307314            } 
    308             $objURL->addQueryString($key, mb_convert_encoding($value, 'SJIS', 'EUC-JP')); 
     315            $objURL->addQueryString($key, mb_convert_encoding($value, 'SJIS', CHAR_CODE)); 
    309316        } 
    310317 
     
    404411 
    405412        // ページ送りの取得 
    406         $objNavi = new SC_PageNavi($this->tpl_pageno, $linemax, $disp_num, "fnNaviPage", NAVI_PMAX); 
    407  
    408         $strnavi = $objNavi->strnavi; 
     413        $this->objNavi = new SC_PageNavi($this->tpl_pageno, $linemax, $disp_num, "fnNaviPage", NAVI_PMAX); 
     414 
     415        $strnavi = $this->objNavi->strnavi; 
    409416        $strnavi = str_replace('onclick="fnNaviPage', 'onclick="form1.mode.value=\''.'\'; fnNaviPage', $strnavi); 
    410417        // 表示文字列 
    411418        $this->tpl_strnavi = empty($strnavi) ? " " : $strnavi; 
    412         $startno = $objNavi->start_row;                 // 開始行 
     419        $startno = $this->objNavi->start_row;                 // 開始行 
    413420 
    414421        // 取得範囲の指定(開始行番号、行数のセット) 
Note: See TracChangeset for help on using the changeset viewer.