2
0
forked from Wavyzz/dolibarr

Fix regression

This commit is contained in:
Laurent Destailleur
2022-09-07 13:58:24 +02:00
parent 967e203319
commit aa560db06d

View File

@@ -2238,7 +2238,7 @@ if (empty($reshook)) {
$type = GETPOST('type'); $type = GETPOST('type');
$fk_unit = GETPOST('units', 'alpha'); $fk_unit = GETPOST('units', 'alpha');
} }
$pu_ht_devise = price2num($price_ht_devise, 'MU'); $pu_ht_devise = price2num($price_ht_devise, 'MU');
// Margin // Margin
@@ -2287,7 +2287,7 @@ if (empty($reshook)) {
if (empty($conf->global->MAIN_DISABLE_PDF_AUTOUPDATE)) { if (empty($conf->global->MAIN_DISABLE_PDF_AUTOUPDATE)) {
$outputlangs = $langs; $outputlangs = $langs;
$newlang = ''; $newlang = '';
if (!empty-$conf->global->MAIN_MULTILANGS) && empty($newlang) && GETPOST('lang_id', 'aZ09')) { if (!empty($conf->global->MAIN_MULTILANGS) && empty($newlang) && GETPOST('lang_id', 'aZ09')) {
$newlang = GETPOST('lang_id', 'aZ09'); $newlang = GETPOST('lang_id', 'aZ09');
} }
if (!empty($conf->global->MAIN_MULTILANGS) && empty($newlang)) { if (!empty($conf->global->MAIN_MULTILANGS) && empty($newlang)) {