From a1bb835074508cb2ef54b7b51815f36a53a52f5a Mon Sep 17 00:00:00 2001 From: Alexandre SPANGARO Date: Mon, 29 Aug 2022 12:04:54 +0200 Subject: [PATCH] Use isModEnabled --- htdocs/compta/stats/casoc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/stats/casoc.php b/htdocs/compta/stats/casoc.php index f02fb24dc7b..72878c5500d 100644 --- a/htdocs/compta/stats/casoc.php +++ b/htdocs/compta/stats/casoc.php @@ -673,10 +673,10 @@ if (count($amount)) { // Other stats print ''; - if (!empty($conf->propal->enabled) && $key > 0) { + if (isModEnabled('propal') && $key > 0) { print ' '.img_picto($langs->trans("ProposalStats"), "stats").' '; } - if (!empty($conf->commande->enabled) && $key > 0) { + if (isModEnabled('commande') && $key > 0) { print ' '.img_picto($langs->trans("OrderStats"), "stats").' '; } if (isModEnabled('facture') && $key > 0) {