Set $remise_percent to 0, if GETPOST is empty.
This commit is contained in:
parent
83742a2917
commit
2aef5e94df
@ -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');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user