Changeset 17680


Ignore:
Timestamp:
2008/11/06 15:36:12 (14 years ago)
Author:
takegami
Message:

#385 修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2/data/class/pages/mypage/LC_Page_Mypage_Order.php

    r16582 r17680  
    103103    function lfGetOrderDetail($order_id) { 
    104104        $objQuery = new SC_Query(); 
     105        $objCustomer = new SC_Customer(); 
     106        //customer_idを検証 
     107        $customer_id = $objCustomer->getValue("customer_id"); 
     108        $order_count = $objQuery->count("dtb_order", "order_id = ? and customer_id = ?", array($order_id, $customer_id)); 
     109        if ($order_count != 1) return array(); 
    105110        $col = "product_id, classcategory_id1, classcategory_id2, quantity"; 
    106111        $where = "order_id = ?"; 
     
    109114        return $arrRet; 
    110115    } 
     116     
    111117} 
    112118?> 
Note: See TracChangeset for help on using the changeset viewer.