Fix var_dump

This commit is contained in:
Laurent Destailleur 2020-04-15 23:44:07 +02:00
parent 43ec6c3ae5
commit 43c48727e2

View File

@ -70,8 +70,8 @@ if ($cancel) $action ='';
if ($action == 'add_prod' && ($user->rights->produit->creer || $user->rights->service->creer))
{
$error=0;
var_dump(GETPOST("max_prod", 'int'));
for ($i=0; $i < GETPOST("max_prod", 'int'); $i++)
$maxprod = GETPOST("max_prod", 'int');
for ($i=0; $i < $maxprod; $i++)
{
$qty = price2num(GETPOST("prod_qty_".$i, 'alpha'), 'MS');
if ($qty > 0)