diff --git a/htdocs/api/admin/explorer.php b/htdocs/api/admin/explorer.php index 7b3dd2544cc..0aecfcd5d7e 100644 --- a/htdocs/api/admin/explorer.php +++ b/htdocs/api/admin/explorer.php @@ -87,15 +87,14 @@ foreach ($modulesdir as $dir) $part = 'compta/facture'; $obj = 'facture'; } - if (empty($conf->$module->enabled)) $enabled=false; - if ($module == 'ficheinter') { $obj = 'fichinter'; $part = 'fichinter'; - $enabled=true; $module='fichinter'; } + if (empty($conf->$module->enabled)) $enabled=false; + if ($enabled) { /*