[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 01/13: use of httpInput
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 01/13: use of httpInput |
Date: |
Sat, 19 Jan 2019 16:52:57 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 5dd6bcf44cc5423d165f279d7465f8d75cdf1e39
Author: Dany De Bontridder <address@hidden>
Date: Fri Dec 28 10:22:23 2018 +0100
use of httpInput
---
include/operation_ods_new.inc.php | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/include/operation_ods_new.inc.php
b/include/operation_ods_new.inc.php
index 8e97df6..1c6f96f 100644
--- a/include/operation_ods_new.inc.php
+++ b/include/operation_ods_new.inc.php
@@ -31,8 +31,9 @@ require_once NOALYSS_INCLUDE.'/lib/iconcerned.class.php';
global $g_user,$g_parameter;
$cn=Dossier::connect();
-$id_predef = (isset($_REQUEST['p_jrn_predef'])) ? $_REQUEST['p_jrn_predef'] :
-1;
-$id_ledger = (isset($_REQUEST['p_jrn'])) ? $_REQUEST['p_jrn'] : $id_predef;
+$id_predef = $http->request('p_jrn_predef','number',-1);
+$id_ledger = $http->request('p_jrn','number',$id_predef);
+
$ledger = new Acc_Ledger($cn, $id_ledger);
$first_ledger=$ledger->get_first('ODS');
$ledger->id = ($ledger->id == -1) ? $first_ledger['jrn_def_id'] : $id_ledger;
- [Noalyss-commit] [noalyss] branch master updated (1971f32 -> ffb0255), Dany De Bontridder, 2019/01/19
- [Noalyss-commit] [noalyss] 01/13: use of httpInput,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 13/13: Protect parameters, Dany De Bontridder, 2019/01/19
- [Noalyss-commit] [noalyss] 02/13: Translation, Dany De Bontridder, 2019/01/19
- [Noalyss-commit] [noalyss] 04/13: Translation, Dany De Bontridder, 2019/01/19
- [Noalyss-commit] [noalyss] 05/13: Translation, Dany De Bontridder, 2019/01/19
- [Noalyss-commit] [noalyss] 06/13: Translation, Dany De Bontridder, 2019/01/19
- [Noalyss-commit] [noalyss] 08/13: remove commented code, Dany De Bontridder, 2019/01/19
- [Noalyss-commit] [noalyss] 09/13: PHP 7.2 incomptability : sizeof of not array, Dany De Bontridder, 2019/01/19
- [Noalyss-commit] [noalyss] 10/13: PHP 7.2 mistyped command, Dany De Bontridder, 2019/01/19
- [Noalyss-commit] [noalyss] 12/13: Typo, Dany De Bontridder, 2019/01/19
- [Noalyss-commit] [noalyss] 11/13: Database upgrade, Dany De Bontridder, 2019/01/19