diff --git a/htdocs/compta/bank/bankentries_list.php b/htdocs/compta/bank/bankentries_list.php
index 70f1959ab54..543750c16a7 100644
--- a/htdocs/compta/bank/bankentries_list.php
+++ b/htdocs/compta/bank/bankentries_list.php
@@ -361,7 +361,7 @@ if (GETPOST('save') && !$cancel && !empty($user->rights->banque->modifier)) {
$error++;
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("BankAccount")), null, 'errors');
}
- /*if (! empty($conf->accounting->enabled) && (empty($search_accountancy_code) || $search_accountancy_code == '-1'))
+ /*if (isModEnabled('accounting') && (empty($search_accountancy_code) || $search_accountancy_code == '-1'))
{
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("AccountAccounting")), null, 'errors');
$error++;
@@ -875,7 +875,7 @@ if ($resql) {
print '
'.$langs->trans("BankAccount").' | ';
print ''.$langs->trans("Debit").' | ';
print ''.$langs->trans("Credit").' | ';
- /*if (! empty($conf->accounting->enabled))
+ /*if (isModEnabled('accounting'))
{
print '';
print $langs->trans("AccountAccounting");
@@ -910,7 +910,7 @@ if ($resql) {
//}
print ' | | ';
print ' | ';
- /*if (! empty($conf->accounting->enabled))
+ /*if (isModEnabled('accounting'))
{
print '';
print $formaccounting->select_account($search_accountancy_code, 'search_accountancy_code', 1, null, 1, 1, '');
@@ -1019,9 +1019,9 @@ if ($resql) {
$moreforfilter .= '';
$moreforfilter .= '';
- if (!empty($conf->categorie->enabled)) {
+ if (isModEnabled('categorie')) {
// Categories
- if (!empty($conf->categorie->enabled) && !empty($user->rights->categorie->lire)) {
+ if (isModEnabled('categorie') && !empty($user->rights->categorie->lire)) {
$langs->load('categories');
// Bank line
|