Clean code

This commit is contained in:
Laurent Destailleur
2021-11-05 14:23:19 +01:00
parent e8a550cb21
commit 897b00faf0
18 changed files with 23 additions and 51 deletions

View File

@@ -304,7 +304,7 @@ class FormAdmin
if (preg_match('/\.lib/i', $filelib)) {
continue;
}
if (empty($conf->global->MAIN_FEATURES_LEVEL) && in_array($file, $expdevmenu)) {
if (getDolGlobalInt('MAIN_FEATURES_LEVEL') == 0 && in_array($file, $expdevmenu)) {
continue;
}