[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 208/218: #0001736: PHP7 comptability
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 208/218: #0001736: PHP7 comptability |
Date: |
Thu, 12 Sep 2019 15:59:11 -0400 (EDT) |
sparkyx pushed a commit to branch entreprise
in repository noalyss.
commit 26ceb85a30e19d7249590233b78692e53ba0cc89
Author: Dany De Bontridder <address@hidden>
Date: Mon Sep 9 19:15:47 2019 +0200
#0001736: PHP7 comptability
---
include/ajax/ajax_anc_search.php | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/include/ajax/ajax_anc_search.php b/include/ajax/ajax_anc_search.php
index 5a4711c..00c114e 100644
--- a/include/ajax/ajax_anc_search.php
+++ b/include/ajax/ajax_anc_search.php
@@ -52,8 +52,11 @@ echo $texte->input();
echo '</span>';
echo dossier::hidden();
$hid=new IHidden();
-echo $hid->input("c1",$_REQUEST['c1']);
-echo $hid->input("c2",$_REQUEST['c2']);
+$c1=$http->request('c1');
+$c2=$http->request('c2');
+
+echo $hid->input("c1",$c1);
+echo $hid->input("c2",$c2);
echo $hid->input("go");
echo HtmlInput::submit("go",_("Recherche"));
echo '</form>';
@@ -61,15 +64,15 @@ echo '</form>';
if ( isset($_REQUEST['go']))
{
$cn=Dossier::connect();
- $plan=new Anc_Plan($cn,$_REQUEST['c2']);
- $plan->pa_id=$_REQUEST['c2'];
+ $plan=new Anc_Plan($cn,$c2);
+ $plan->pa_id=$c2;
if ( $plan->exist()==false)
exit(_("Ce plan n'existe pas"));
-
+ $plabel=$http->request("plabel");
$sql="select po_name , po_description from poste_analytique ".
"where pa_id=$1 and ".
" (po_name ~* $2 or po_description ~* $3) order by po_name";
-
$array=$cn->get_array($sql,array($_REQUEST['c2'],$_REQUEST['plabel'],$_REQUEST['plabel']));
+ $array=$cn->get_array($sql,array($_c2,$plabel,$plabel));
if (empty($array) == true)
{
@@ -81,7 +84,7 @@ if ( isset($_REQUEST['go']))
foreach ($array as $line)
{
$js=sprintf("onclick=\"$('%s').value='%s';removeDiv('%s')\"",
- $_REQUEST['c1'],
+ $c1,
$line['po_name'],$ctl);
echo '<tr>'.
- [Noalyss-commit] [noalyss] 196/218: Mantis #1693: CA - problème avec la balance croisée double, (continued)
- [Noalyss-commit] [noalyss] 196/218: Mantis #1693: CA - problème avec la balance croisée double, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 206/218: Cosmetic, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 203/218: Merge branch 'dev7109' into entreprise, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 207/218: #0001736: PHP7 comptability, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 214/218: Bug : for customer without vat, there is not variable e_march_x_tva, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 218/218: Merge branch 'dev7109' into entreprise, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 180/218: Mantis #0001614: Problème bilans , changement pour bilan ASBL, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 190/218: translate, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 81/218: adapt to 7.2 , error with sizeof, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 204/218: Cosmetic, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 208/218: #0001736: PHP7 comptability,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 213/218: Code cleaning : remove dead code, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 201/218: Merge branch 'dev7109' into entreprise, Dany De Bontridder, 2019/09/12