Ignore:
Timestamp:
2012/02/28 22:35:14 (12 years ago)
Author:
Seasoft
Message:

#1669 (変数の初期化漏れ)
#1613 (typo修正・ソース整形・ソースコメントの改善)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/pages/admin/products/LC_Page_Admin_Products.php

    r21527 r21563  
    121121                if (count($this->arrErr) == 0) { 
    122122                    $where = 'del_flg = 0'; 
     123                    $arrWhereVal = array(); 
    123124                    foreach ($arrParam as $key => $val) { 
    124125                        if ($val == '') { 
    125126                            continue; 
    126127                        } 
    127                         $this->buildQuery($key, $where, $arrval, $objFormParam, $objDb); 
     128                        $this->buildQuery($key, $where, $arrWhereVal, $objFormParam, $objDb); 
    128129                    } 
    129130 
     
    138139                            $objCSV = new SC_Helper_CSV_Ex(); 
    139140                            // CSVを送信する。正常終了の場合、終了。 
    140                             $objCSV->sfDownloadCsv(1, $where, $arrval, $order, true); 
     141                            $objCSV->sfDownloadCsv(1, $where, $arrWhereVal, $order, true); 
    141142                            exit; 
    142143 
    143144                        // 全件削除(ADMIN_MODE) 
    144145                        case 'delete_all': 
    145                             $this->doDelete($where, $arrval); 
     146                            $this->doDelete($where, $arrWhereVal); 
    146147                            break; 
    147148 
     
    149150                        default: 
    150151                            // 行数の取得 
    151                             $this->tpl_linemax = $this->getNumberOfLines($where, $arrval); 
     152                            $this->tpl_linemax = $this->getNumberOfLines($where, $arrWhereVal); 
    152153                            // ページ送りの処理 
    153154                            $page_max = SC_Utils_Ex::sfGetSearchPageMax($objFormParam->getValue('search_page_max')); 
     
    159160 
    160161                            // 検索結果の取得 
    161                             $this->arrProducts = $this->findProducts($where, $arrval, $page_max, $objNavi->start_row, 
     162                            $this->arrProducts = $this->findProducts($where, $arrWhereVal, $page_max, $objNavi->start_row, 
    162163                                                                     $order, $objProduct); 
    163164 
Note: See TracChangeset for help on using the changeset viewer.