HttpInput::extract fix bug

This commit is contained in:
Dany De Bontridder 2018-02-23 22:24:46 +01:00
parent fc7c8a4a36
commit d39d0341b0

View file

@ -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)