From 48a31b2398de34c4b885b817cc9ee25d0ee9eada Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 3 Feb 2018 19:58:30 +0100 Subject: [PATCH] Update explorer.php --- htdocs/api/admin/explorer.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) { /*