From a5969db28b09ba203c927687b31d57173cbdea4a Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 20 Feb 2012 21:19:08 +0100 Subject: [PATCH] Fix: uniformize code --- htdocs/fourn/paiement/fiche.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/htdocs/fourn/paiement/fiche.php b/htdocs/fourn/paiement/fiche.php index 469aa1c1a1a..dfb40716ce8 100644 --- a/htdocs/fourn/paiement/fiche.php +++ b/htdocs/fourn/paiement/fiche.php @@ -36,9 +36,9 @@ $langs->load("suppliers"); $mesg=''; -$id = GETPOST('id'); -$action = GETPOST('action'); -$confirm = GETPOST('confirm'); +$id = GETPOST('id','int'); +$action = GETPOST('action','alpha'); +$confirm = GETPOST('confirm','alpha'); $object = new PaiementFourn($db); @@ -141,7 +141,7 @@ $form = new Form($db); $h=0; -$head[$h][0] = DOL_URL_ROOT.'/fourn/paiement/fiche.php?id='.$id; +$head[$h][0] = $_SERVER['PHP_SELF'].'?id='.$id; $head[$h][1] = $langs->trans('Card'); $hselected = $h; $h++; @@ -338,7 +338,7 @@ else dol_fiche_end(); -$db->close(); - llxFooter(); -?> + +$db->close(); +?> \ No newline at end of file