Ticket #1254 (closed バグ指摘: 修正済)

Opened 10 years ago

Last modified 10 years ago

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

comment:1 Changed 10 years ago by nanasess

  • Owner changed from somebody to nanasess
  • 修正済み set
  • Status changed from new to assigned

r20830 修正しました

comment:2 Changed 10 years ago by kajiwara

  • Status changed from assigned to closed
  • Resolution set to 修正済
Note: See TracTickets for help on using tickets.