ISelect->display fails if this->value if null
This commit is contained in:
parent
51899c6993
commit
104544f25e
1 changed files with 3 additions and 0 deletions
|
|
@ -85,6 +85,9 @@ class ISelect extends HtmlInput
|
|||
public function display()
|
||||
{
|
||||
$r="";
|
||||
if ($this->value == null) {
|
||||
$this->value=array();
|
||||
}
|
||||
for ( $i=0;$i<sizeof($this->value);$i++)
|
||||
{
|
||||
if ($this->selected==$this->value[$i]['value'] )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue