Ticket #1254 (closed バグ指摘: 修正済)
SC_FormParam::getValue() の第二引数が無効
| Reported by: | nanasess | Owned by: | nanasess |
|---|---|---|---|
| Priority: | 低 | Milestone: | EC-CUBE2.11.1 |
| Component: | その他 | Version: | 2.11.0 |
| Keywords: | Cc: | ||
| 修正済み: | yes |
Description
従来, 使用している箇所は無いと思いますが SC_FormParam::getValue() の第二引数 $default が動作していない模様
is_null でチェックしているが, 前の処理で空文字を代入しているため.
foreach($this->keyname as $val) {
if($val == $keyname) {
$ret = isset($this->param[$cnt]) ? $this->param[$cnt] : "";
break;
}
$cnt++;
}
if(is_null($ret)){
$ret = $default;
}
Change History
Note: See
TracTickets for help on using
tickets.

r20830 修正しました