Use isModEnabled
This commit is contained in:
parent
355286e50a
commit
732d1e4e40
@ -497,10 +497,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?userid='.$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?userid='.$key.'">'.img_picto($langs->trans("OrderStats"), "stats").'</a> ';
|
||||
}
|
||||
if (isModEnabled('facture') && $key > 0) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user