Fix phpcs

This commit is contained in:
Laurent Destailleur 2020-05-26 01:16:18 +02:00
parent 3aaefd15b0
commit b6308f6dfa
2 changed files with 3 additions and 6 deletions

View File

@ -217,12 +217,9 @@ if ($conf->global->PRODUIT_MULTIPRICES){
for ($i = 1; $i <= $conf->global->PRODUIT_MULTIPRICES_LIMIT; $i++) for ($i = 1; $i <= $conf->global->PRODUIT_MULTIPRICES_LIMIT; $i++)
{ {
$keyforlabel = 'PRODUIT_MULTIPRICES_LABEL'.$i; $keyforlabel = 'PRODUIT_MULTIPRICES_LABEL'.$i;
if (!empty($conf->global->$keyforlabel)) if (!empty($conf->global->$keyforlabel)) {
{
$labelp = $i.' - '.$langs->trans($conf->global->$keyforlabel); $labelp = $i.' - '.$langs->trans($conf->global->$keyforlabel);
} } else {
else
{
$labelp = $langs->trans("SellingPrice")." ".$i; $labelp = $langs->trans("SellingPrice")." ".$i;
} }
$arrayfields['p.sellprice'.$i] = array('label'=>$labelp, 'checked'=>1, 'enabled'=>$conf->global->PRODUIT_MULTIPRICES, 'position'=>40); $arrayfields['p.sellprice'.$i] = array('label'=>$labelp, 'checked'=>1, 'enabled'=>$conf->global->PRODUIT_MULTIPRICES, 'position'=>40);