Fix PHP 8.1.7

This commit is contained in:
Alexandre SPANGARO 2022-06-12 21:56:15 +02:00
parent ae55ff6a43
commit 2865b72b65

View File

@ -195,7 +195,8 @@ foreach ($list_account_main as $key) {
print '</td>';
// Value
print '<td class="right">'; // Do not force class=right, or it align also the content of the select box
print $formaccounting->select_account($conf->global->$key, $key, 1, '', 1, 1, 'minwidth100 maxwidth300 maxwidthonsmartphone', 'accountsmain');
$key_value = getDolGlobalString($conf->global->$key, $conf->global->$key);
print $formaccounting->select_account($key_value, $key, 1, '', 1, 1, 'minwidth100 maxwidth300 maxwidthonsmartphone', 'accountsmain');
print '</td>';
print '</tr>';
}