diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 2033d24404a..36affbacc21 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -287,7 +287,7 @@ if (! defined('NOLOGIN')) $authmode=explode(',',$dolibarr_main_authentication); // No authentication mode - if (! sizeof($authmode) && is_array($conf->login_method_modules) && !empty($conf->login_method_modules)) + if (! sizeof($authmode) && empty($conf->login_method_modules)) { $langs->load('main'); dol_print_error('',$langs->trans("ErrorConfigParameterNotDefined",'dolibarr_main_authentication'));