diff --git a/htdocs/admin/facture.php b/htdocs/admin/facture.php index f866eef7802..4a8e54589e9 100644 --- a/htdocs/admin/facture.php +++ b/htdocs/admin/facture.php @@ -637,7 +637,7 @@ print "\n"; print ''; print "".$langs->trans("SuggestPaymentByRIBOnAccount").""; print ""; -if (!empty($conf->banque->enabled)) { +if (isModEnabled('banque')) { $sql = "SELECT rowid, label"; $sql .= " FROM ".MAIN_DB_PREFIX."bank_account"; $sql .= " WHERE clos = 0";