From ab3642d8fbdb4f07bd4f8859d7d928d4ddde76ec Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 21 Aug 2025 00:03:02 +0200 Subject: [PATCH] Fix test --- htdocs/categories/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/categories/index.php b/htdocs/categories/index.php index 4c890e50700..27e264d2d07 100644 --- a/htdocs/categories/index.php +++ b/htdocs/categories/index.php @@ -114,7 +114,7 @@ foreach ($listofmodulesautoenabled as $moduleautoenable) { } } -if (1 || $user->admin && $nbmodulesnotautoenabled <= getDolGlobalInt('MAIN_MIN_NB_ENABLED_MODULE_FOR_WARNING', 1)) { // If only minimal initial modules enabled +if ($user->admin && $nbmodulesnotautoenabled <= getDolGlobalInt('MAIN_MIN_NB_ENABLED_MODULE_FOR_WARNING', 1)) { // If only minimal initial modules enabled $langs->load("admin"); print info_admin($langs->trans("WarningOnlyCategoryTypesOfActivatedModules").' '.$langs->trans("YouCanEnableModulesFrom")); }