From d39d0341b09149527377ba50775bd892d05351ff Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Fri, 23 Feb 2018 22:24:46 +0100 Subject: [PATCH] HttpInput::extract fix bug --- include/lib/http_input.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)