Changeset 21221


Ignore:
Timestamp:
2011/08/26 10:36:12 (9 years ago)
Author:
sire
Message:

#1465 SC_Helper_Customer::sfGetCustomerDataFromIdメソッドでwhere句の条件が効かない点を修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_11-dev/data/class/helper/SC_Helper_Customer.php

    r21189 r21221  
    255255    function sfGetCustomerDataFromId($customer_id, $add_where = '', $arrAddVal = array()) { 
    256256        $objQuery   =& SC_Query_Ex::getSingletonInstance(); 
    257         if($where == '') { 
     257        if($add_where == '') { 
    258258            $where = 'customer_id = ?'; 
    259259            $arrData = $objQuery->getRow("*", "dtb_customer", $where, array($customer_id)); 
    260260        }else{ 
     261            $where = $add_where; 
    261262            if(SC_Utils_Ex::sfIsInt($customer_id)) { 
    262263                $where .= ' AND customer_id = ?'; 
Note: See TracChangeset for help on using the changeset viewer.