Fix regression

This commit is contained in:
Laurent Destailleur 2021-12-30 17:49:53 +01:00
parent 76a0caf116
commit 7bdfc998bf

View File

@ -78,7 +78,9 @@ if ($action == 'updateMask')
$maskconst = GETPOST('maskconst', 'alpha');
$maskvalue = GETPOST('maskvalue', 'alpha');
if ($maskconstorder) $res = dolibarr_set_const($db, $maskconst, $maskvalue, 'chaine', 0, '', $conf->entity);
if ($maskconst) {
$res = dolibarr_set_const($db, $maskconst, $maskvalue, 'chaine', 0, '', $conf->entity);
}
if (!$res > 0) $error++;