Merge pull request #7980 from hregis/6.0_bug2

Fix: avoid php warning
This commit is contained in:
Laurent Destailleur 2017-12-28 06:53:09 +01:00 committed by GitHub
commit de305cb3b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,7 @@ if (empty($reshook))
$tmpinvoice=new Facture($db);
foreach ($_POST as $key => $value)
{
if (substr($key,0,7) == 'amount_')
if (substr($key,0,7) == 'amount_' && GETPOST($key) != '')
{
$cursorfacid = substr($key,7);
$amounts[$cursorfacid] = price2num(trim(GETPOST($key)));