Changeset 21833


Ignore:
Timestamp:
2012/05/14 18:02:34 (9 years ago)
Author:
Seasoft
Message:

#1805 (SC_Helper_Mail#sfSendOrderMail 存在しない注文番号でメール送信できる)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/helper/SC_Helper_Mail.php

    r21829 r21833  
    123123 
    124124        // 受注情報の取得 
     125        $where = 'order_id = ? AND del_flg = 0'; 
     126        $arrOrder = $objQuery->getRow('*', 'dtb_order', $where, array($order_id)); 
     127 
     128        if (empty($arrOrder)) { 
     129            trigger_error("該当する受注が存在しない。(注文番号: $order_id)", E_USER_ERROR); 
     130        } 
     131 
    125132        $where = 'order_id = ?'; 
    126         $arrRet = $objQuery->select('*', 'dtb_order', $where, array($order_id)); 
    127         $arrOrder = $arrRet[0]; 
    128133        $objQuery->setOrder('order_detail_id'); 
    129134        $arrTplVar->arrOrderDetail = $objQuery->select('*', 'dtb_order_detail', $where, array($order_id)); 
Note: See TracChangeset for help on using the changeset viewer.