From bb3f6c5d3cd1b1edba3e40ac0da0c63899d4ff39 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 13 Jul 2004 13:28:30 +0000 Subject: [PATCH] Modif pour register_global=off --- htdocs/compta/facture.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 00695769a80..481d3f79fad 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -206,10 +206,10 @@ if ($_POST["action"] == 'confirm_valid' && $_POST["confirm"] == yes && $user->ri } } -if ($action == 'payed' && $user->rights->facture->paiement) +if ($_GET["action"] == 'payed' && $user->rights->facture->paiement) { $fac = new Facture($db); - $result = $fac->set_payed($facid); + $result = $fac->set_payed($_GET["facid"]); } if ($action == 'canceled' && $user->rights->facture->paiement)