Fix: GETPOST can not always be used to replace isset.

This commit is contained in:
Laurent Destailleur 2012-08-20 14:30:16 +02:00
parent 880276f047
commit 2ab1a018df

View File

@ -483,7 +483,7 @@ if ($action == 'create')
print '<tr><td width="10%">'.$langs->trans("Status").' / '.$langs->trans("Percentage").'</td>';
print '<td>';
$percent=-1;
if (GETPOST('percentage'))
if (isset($_GET['percentage']) || isset($_POST['percentage']))
{
$percent=GETPOST('percentage');
}