Changeset 21284


Ignore:
Timestamp:
2011/10/18 12:09:15 (12 years ago)
Author:
Seasoft
Message:

#1507 (受注管理>受注登録 商品が空の状態で顧客選択を行うとDBエラー)

File:
1 edited

Legend:

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

    r21278 r21284  
    291291        } elseif (strlen($this->where) >= 1) { 
    292292            $sqlse .= " WHERE " . $this->where; 
    293             if (empty($arrWhereVal)) { 
     293            // 実行時と同じくキャストしてから評価する (空文字を要素1の配列と評価させる意図) 
     294            $arrWhereValForEval = (array)$arrWhereVal; 
     295            if (empty($arrWhereValForEval)) { 
    294296                $arrWhereVal = $this->arrWhereVal; 
    295297            } 
Note: See TracChangeset for help on using the changeset viewer.