Fix phpcs

This commit is contained in:
Laurent Destailleur 2020-08-07 14:57:52 +02:00
parent ada7b74ba1
commit dd773d33fd

View File

@ -66,12 +66,13 @@ if ($id > 0 || ! empty($ref))
if ($cancel) $action ='';
// Action association d'un sousproduit
// Add subproduct to product
if ($action == 'add_prod' && ($user->rights->produit->creer || $user->rights->service->creer))
{
$error=0;
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)