Fix bad default value set

This commit is contained in:
Laurent Destailleur 2024-01-02 16:24:57 +01:00
parent acfbc74f06
commit c5fea74716

View file

@ -226,13 +226,15 @@ foreach ($syslogModules as $moduleName) {
print '<td class="nowrap">';
$setuparray = $module->configure();
if ($setuparray) {
foreach ($setuparray as $option) {
$tmpoption = $option['constant'];
$value = '';
if (!empty($tmpoption)) {
if (GETPOSTISSET($tmpoption)) {
$value = GETPOST($tmpoption);
} elseif (getDolGlobalString($tmpoption)) {
} else {
$value = getDolGlobalString($tmpoption);
}
} else {