Use isModEnabled
This commit is contained in:
parent
732d1e4e40
commit
a1bb835074
@ -673,10 +673,10 @@ if (count($amount)) {
|
||||
|
||||
// Other stats
|
||||
print '<td class="center">';
|
||||
if (!empty($conf->propal->enabled) && $key > 0) {
|
||||
if (isModEnabled('propal') && $key > 0) {
|
||||
print ' <a href="'.DOL_URL_ROOT.'/comm/propal/stats/index.php?socid='.$key.'">'.img_picto($langs->trans("ProposalStats"), "stats").'</a> ';
|
||||
}
|
||||
if (!empty($conf->commande->enabled) && $key > 0) {
|
||||
if (isModEnabled('commande') && $key > 0) {
|
||||
print ' <a href="'.DOL_URL_ROOT.'/commande/stats/index.php?socid='.$key.'">'.img_picto($langs->trans("OrderStats"), "stats").'</a> ';
|
||||
}
|
||||
if (isModEnabled('facture') && $key > 0) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user