Use isModEnabled

This commit is contained in:
Alexandre SPANGARO 2022-08-29 12:05:10 +02:00
parent 6ef4987766
commit 6d5bb21fa9

View File

@ -118,7 +118,7 @@ if ($year) {
$param .= '&year='.$year;
}
if (!empty($conf->tax->enabled) && $user->rights->tax->charges->lire) {
if (isModEnabled('tax') && $user->rights->tax->charges->lire) {
print '<div class="div-table-responsive">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
print '<table class="noborder centpercent">';
print '<tr class="liste_titre">';