to avoid : Warning: A non-numeric value encountered
This commit is contained in:
parent
fff9b7db9d
commit
0513ae8cd0
@ -136,7 +136,7 @@ if (empty($reshook))
|
|||||||
if (substr($key, 0, 7) == 'amount_')
|
if (substr($key, 0, 7) == 'amount_')
|
||||||
{
|
{
|
||||||
$cursorfacid = substr($key, 7);
|
$cursorfacid = substr($key, 7);
|
||||||
$amounts[$cursorfacid] = price2num(trim(GETPOST($key)));
|
$amounts[$cursorfacid] = (float) price2num(trim(GETPOST($key)));
|
||||||
$totalpayment = $totalpayment + $amounts[$cursorfacid];
|
$totalpayment = $totalpayment + $amounts[$cursorfacid];
|
||||||
if (! empty($amounts[$cursorfacid])) $atleastonepaymentnotnull++;
|
if (! empty($amounts[$cursorfacid])) $atleastonepaymentnotnull++;
|
||||||
$result=$tmpinvoice->fetch($cursorfacid);
|
$result=$tmpinvoice->fetch($cursorfacid);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user