diff --git a/include/lib/http_input.class.php b/include/lib/http_input.class.php index c77273f05..6772c0e5b 100644 --- a/include/lib/http_input.class.php +++ b/include/lib/http_input.class.php @@ -215,11 +215,11 @@ class HttpInput try { $this->array=$p_array; - if (func_num_args()==1) - return $this->get_value($p_name); if (func_num_args()==2) - return $this->get_value($p_name, $p_type); + return $this->get_value($p_name); if (func_num_args()==3) + return $this->get_value($p_name, $p_type); + if (func_num_args()==4) return $this->get_value($p_name, $p_type, $p_default); } catch (Exception $exc)