diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 15555ee19b7..0824379ab79 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -5810,7 +5810,7 @@ function info_admin($text, $infoonimgalt = 0, $nodiv = 0, $admin = '1', $morecss */ function dol_print_error($db = null, $error = '', $errors = null) { - global $conf, $langs, $argv; + global $conf, $langs, $user, $argv; global $dolibarr_main_prod; $out = ''; @@ -5838,6 +5838,9 @@ function dol_print_error($db = null, $error = '', $errors = null) if (isset($conf->global->MAIN_FEATURES_LEVEL)) { $out .= "".$langs->trans("LevelOfFeature").": ".getDolGlobalInt('MAIN_FEATURES_LEVEL')."
\n"; } + if ($user instanceof User) { + $out .= "".$langs->trans("Login").": ".$user->login."
\n"; + } if (function_exists("phpversion")) { $out .= "".$langs->trans("PHP").": ".phpversion()."
\n"; }