Set $remise_percent to 0, if GETPOST is empty.

This commit is contained in:
Christian Humpel 2023-01-01 15:05:04 +01:00 committed by Laurent Destailleur
parent 83742a2917
commit 2aef5e94df

View File

@ -1106,7 +1106,7 @@ if (empty($reshook)) {
$special_code = 3;
}
$remise_percent = price2num(GETPOST('remise_percent'), '', 2);
$remise_percent = GETPOST('remise_percent') != '' ? price2num(GETPOST('remise_percent'), '', 2) : 0;
// Check minimum price
$productid = GETPOST('productid', 'int');