noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 241/323: HttpInput::extract fix bug


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 241/323: HttpInput::extract fix bug
Date: Wed, 14 Mar 2018 17:38:58 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit d39d0341b09149527377ba50775bd892d05351ff
Author: Dany De Bontridder <address@hidden>
Date:   Fri Feb 23 22:24:46 2018 +0100

    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 c77273f..6772c0e 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]