diff --git a/include/lib/iselect.class.php b/include/lib/iselect.class.php index 20087359c..1a910557c 100644 --- a/include/lib/iselect.class.php +++ b/include/lib/iselect.class.php @@ -29,6 +29,17 @@ require_once NOALYSS_INCLUDE.'/lib/html_input.class.php'; class ISelect extends HtmlInput { + function __construct($p_name="", $p_value="", $p_id="") + { + parent::__construct($p_name,$p_value,$p_id); + $this->name=$p_name; + if ( $p_value == "" || ! is_array($p_value)) { + $this->value=array(); + } else { + $this->value=$p_value; + } + $this->id=$p_id; + } /*!\brief show the html input of the widget*/ public function input($p_name=null,$p_value=null) { @@ -69,7 +80,7 @@ class ISelect extends HtmlInput } } // $r=''.$r.''; - if ( $this->table == 1 ) $a='