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

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

Location:
branches/version-2_12-dev/data/class/pages/admin/order
Files:
2 edited

Legend:

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

    r21527 r21563  
    118118                if (count($this->arrErr) == 0) { 
    119119                    $where = 'del_flg = 0'; 
     120                    $arrWhereVal = array(); 
    120121                    foreach ($arrParam as $key => $val) { 
    121122                        if ($val == '') { 
    122123                            continue; 
    123124                        } 
    124                         $this->buildQuery($key, $where, $arrval, $objFormParam); 
     125                        $this->buildQuery($key, $where, $arrWhereVal, $objFormParam); 
    125126                    } 
    126127 
     
    133134                        // CSVを送信する。 
    134135                        case 'csv': 
    135                             $this->doOutputCSV($where, $arrval,$order); 
     136                            $this->doOutputCSV($where, $arrWhereVal, $order); 
    136137                            exit; 
    137138                            break; 
     
    139140                        // 全件削除(ADMIN_MODE) 
    140141                        case 'delete_all': 
    141                             $this->doDelete($where, $arrval); 
     142                            $this->doDelete($where, $arrWhereVal); 
    142143                            break; 
    143144 
     
    145146                        default: 
    146147                            // 行数の取得 
    147                             $this->tpl_linemax = $this->getNumberOfLines($where, $arrval); 
     148                            $this->tpl_linemax = $this->getNumberOfLines($where, $arrWhereVal); 
    148149                            // ページ送りの処理 
    149150                            $page_max = SC_Utils_Ex::sfGetSearchPageMax($objFormParam->getValue('search_page_max')); 
     
    155156 
    156157                            // 検索結果の取得 
    157                             $this->arrResults = $this->findOrders($where, $arrval, 
     158                            $this->arrResults = $this->findOrders($where, $arrWhereVal, 
    158159                                                                  $page_max, $objNavi->start_row, $order); 
    159160                            break; 
  • branches/version-2_12-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Status.php

    r21527 r21563  
    172172        $from = 'dtb_order'; 
    173173        $where = 'del_flg = 0 AND status = ?'; 
    174         $arrval[] = $status; 
     174        $arrWhereVal = array($status); 
    175175        $order = 'order_id DESC'; 
    176176 
    177         $linemax = $objQuery->count($from, $where, $arrval); 
     177        $linemax = $objQuery->count($from, $where, $arrWhereVal); 
    178178        $this->tpl_linemax = $linemax; 
    179179 
     
    195195 
    196196        //検索結果の取得 
    197         $this->arrStatus = $objQuery->select($select, $from, $where, $arrval); 
     197        $this->arrStatus = $objQuery->select($select, $from, $where, $arrWhereVal); 
    198198    } 
    199199 
Note: See TracChangeset for help on using the changeset viewer.