Changeset 17890


Ignore:
Timestamp:
2009/03/07 22:02:54 (15 years ago)
Author:
Seasoft
Message:

merge 17395
・取得元: version-2
・未テスト
【取得元のログメッセージ】
決済モジュール未使用時にDBエラーになる不具合の修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php

    r17889 r17890  
    282282         * SPS決済 クレジット判定用処理 
    283283         */ 
    284         $objQuery = new SC_Query(); 
    285         $this->paymentType = $objQuery->getall("SELECT module_code, memo03 FROM dtb_payment WHERE payment_id = ? ", array($this->arrForm["payment_id"]['value'])); 
    286         $objDate = new SC_Date(); 
    287         $objDate->setStartYear(RELEASE_YEAR); 
    288         $this->arrYear = $objDate->getYear(); 
    289         $this->arrMonth = $objDate->getMonth(); 
    290         $this->arrDay = $objDate->getDay(); 
     284        if (file_exists(MODULE_PATH . 'mdl_sps/request.php') === TRUE) { 
     285            $objQuery = new SC_Query(); 
     286            $this->paymentType = $objQuery->getall("SELECT module_code, memo03 FROM dtb_payment WHERE payment_id = ? ", array($this->arrForm["payment_id"]['value'])); 
     287            $objDate = new SC_Date(); 
     288            $objDate->setStartYear(RELEASE_YEAR); 
     289            $this->arrYear = $objDate->getYear(); 
     290            $this->arrMonth = $objDate->getMonth(); 
     291            $this->arrDay = $objDate->getDay(); 
     292        } 
    291293 
    292294        $objView->assignobj($this); 
Note: See TracChangeset for help on using the changeset viewer.