diff --git a/htdocs/accountancy/admin/index.php b/htdocs/accountancy/admin/index.php index 5caa92ec9ee..3a7be3e073e 100644 --- a/htdocs/accountancy/admin/index.php +++ b/htdocs/accountancy/admin/index.php @@ -514,18 +514,20 @@ if (!empty($conf->global->ACCOUNTING_ENABLE_LETTERING)) { } print ''; -print ''; -print ''.$langs->trans("ACCOUNTING_ENABLE_AUTOLETTERING").''; -if (!empty($conf->global->ACCOUNTING_ENABLE_AUTOLETTERING)) { - print ''; - print img_picto($langs->trans("Activated"), 'switch_on'); - print ''; -} else { - print ''; - print img_picto($langs->trans("Disabled"), 'switch_off'); - print ''; +if (!empty($conf->global->ACCOUNTING_ENABLE_LETTERING)) { + print ''; + print '' . $langs->trans("ACCOUNTING_ENABLE_AUTOLETTERING") . ''; + if (!empty($conf->global->ACCOUNTING_ENABLE_AUTOLETTERING)) { + print ''; + print img_picto($langs->trans("Activated"), 'switch_on'); + print ''; + } else { + print ''; + print img_picto($langs->trans("Disabled"), 'switch_off'); + print ''; + } + print ''; } -print ''; print '';