[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 69/219: HttpInput : do not use in_array but a
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 69/219: HttpInput : do not use in_array but array_key_exists, |
Date: |
Mon, 18 Dec 2017 13:22:40 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 17b8a0504bca7656fa9f3bee091d64331f292642
Author: Dany De Bontridder <address@hidden>
Date: Fri Oct 6 10:00:49 2017 +0200
HttpInput : do not use in_array but array_key_exists,
---
include/lib/http_input.class.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/lib/http_input.class.php b/include/lib/http_input.class.php
index 4b4146f..f2b71b6 100644
--- a/include/lib/http_input.class.php
+++ b/include/lib/http_input.class.php
@@ -86,7 +86,7 @@ class HttpInput
{
if (func_num_args()==3)
{
- if (in_array($p_name,$this->array) )
+ if (array_key_exists($p_name,$this->array) )
{
$this->check_type($p_name, $p_type);
return $this->array[$p_name];
@@ -96,7 +96,7 @@ class HttpInput
return $p_default;
}
}
- if (!in_array($p_name,$this->array))
+ if (!array_key_exists($p_name,$this->array))
{
throw new Exception(_('Paramètre invalide')."[$p_name]",
EXC_PARAM_VALUE);
- [Noalyss-commit] [noalyss] 156/219: Task #1489: Procédure d'ouverture d'exercice : libellé ambigu Amélioration esthétique & ergonomie, (continued)
- [Noalyss-commit] [noalyss] 156/219: Task #1489: Procédure d'ouverture d'exercice : libellé ambigu Amélioration esthétique & ergonomie, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 77/219: PRINTJRN : enlève num opération, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 145/219: ANC : Bouton "recherche" sont des loupes, ajout title, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 168/219: Task #1476 : prevent the use of some accounting Code cleaning , remove obsolete files, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 161/219: Noalyss_SQL :: count add a space, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 107/219: task #0001272: Rendre possible l'appel de la calculatrice depuis le fin fond d'une page., Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 164/219: Code cleaning : remove obsolete, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 83/219: NUM_FIELD = 40, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 129/219: Anc ODS : esthetic search analytic accounting, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 188/219: Plan Comptable : max longueur du poste = 40, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 69/219: HttpInput : do not use in_array but array_key_exists,,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 217/219: Acc_Account : add function , improve function verify, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 49/219: improve esthetic, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 136/219: Infobulle : avoid that the info balloon exceed limit of the display, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 24/219: Code improve : Replace HtmlInput::generate_id obsolete , fix bug in the filter for detail history, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 171/219: remove useless, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 61/219: Inplace_Edit : improve button + test, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 124/219: indentation, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 21/219: Improve debugging and improve manage_table_sql element will be added at the right place Manage_Table_SQL can work also with a SQL query or a view Icon place can be modified, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 34/219: rename scenario files, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 31/219: Task #0001443: opérations rapprochées : bug quand on utilise des tva avec autoliquidation Documentation, Dany De Bontridder, 2017/12/18