Browse Source

Use isModEnabled

Alexandre SPANGARO 2 years ago
parent
commit
e6fb17c909
1 changed files with 1 additions and 1 deletions
  1. 1 1
      htdocs/compta/index.php

+ 1 - 1
htdocs/compta/index.php

@@ -50,7 +50,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/invoice.lib.php';
 
 // Load translation files required by the page
 $langs->loadLangs(array('compta', 'bills'));
-if (!empty($conf->commande->enabled)) {
+if (isModEnabled('commande')) {
 	$langs->load("orders");
 }