Corrected bug where product multiprices admin page would not render properly due to a PHP fatal error

This commit is contained in:
Marcos García de La Fuente 2017-03-13 20:33:21 +01:00
parent 3ff456d8ef
commit 15d0e6abc5

View File

@ -155,7 +155,6 @@ $genPriceOptions = function($level) use ($price_options) {
return $return; return $return;
}; };
?> ?>
<table class="noborder"> <table class="noborder">
@ -173,7 +172,8 @@ $genPriceOptions = function($level) use ($price_options) {
<td class="fieldrequired" style="text-align: center"><?php <td class="fieldrequired" style="text-align: center"><?php
echo $langs->trans('SellingPrice').' '.$i; echo $langs->trans('SellingPrice').' '.$i;
// Label of price // Label of price
if (! empty($conf->global->{"PRODUIT_MULTIPRICES_LABEL$i"})) { $keyforlabel='PRODUIT_MULTIPRICES_LABEL'.$i;
if (! empty($conf->global->$keyforlabel)) {
print ' - '.$langs->trans($conf->global->$keyforlabel); print ' - '.$langs->trans($conf->global->$keyforlabel);
} }
?> ?>