From 2ab1a018df805a08fffb063b41116e396264f5d2 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 20 Aug 2012 14:30:16 +0200 Subject: [PATCH] Fix: GETPOST can not always be used to replace isset. --- htdocs/comm/action/fiche.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php index 36bebd6402e..aaba6d94455 100644 --- a/htdocs/comm/action/fiche.php +++ b/htdocs/comm/action/fiche.php @@ -483,7 +483,7 @@ if ($action == 'create') print ''.$langs->trans("Status").' / '.$langs->trans("Percentage").''; print ''; $percent=-1; - if (GETPOST('percentage')) + if (isset($_GET['percentage']) || isset($_POST['percentage'])) { $percent=GETPOST('percentage'); }