FIX: warning when adding a line if $remise_percent is an empty string

This commit is contained in:
Florian Mortgat 2021-02-08 17:24:40 +01:00
parent ea47a55144
commit ff3707b650

View File

@ -672,6 +672,7 @@ if (empty($reshook))
$qty = price2num(GETPOST('qty'.$predef, 'alpha'));
$remise_percent = (GETPOSTISSET('remise_percent'.$predef) ? price2num(GETPOST('remise_percent'.$predef, 'alpha')) : 0);
if ($remise_percent === '') $remise_percent = 0;
// Extrafields
$extralabelsline = $extrafields->fetch_name_optionals_label($object->table_element_line);