Fix: avoid php warning
This commit is contained in:
parent
a020dbf3d7
commit
2821459894
@ -102,7 +102,7 @@ if (empty($reshook))
|
|||||||
$tmpinvoice=new Facture($db);
|
$tmpinvoice=new Facture($db);
|
||||||
foreach ($_POST as $key => $value)
|
foreach ($_POST as $key => $value)
|
||||||
{
|
{
|
||||||
if (substr($key,0,7) == 'amount_')
|
if (substr($key,0,7) == 'amount_' && GETPOST($key) != '')
|
||||||
{
|
{
|
||||||
$cursorfacid = substr($key,7);
|
$cursorfacid = substr($key,7);
|
||||||
$amounts[$cursorfacid] = price2num(trim(GETPOST($key)));
|
$amounts[$cursorfacid] = price2num(trim(GETPOST($key)));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user