diff --git a/htdocs/user/list.php b/htdocs/user/list.php index 1f18cc20da5..368b5d7856f 100644 --- a/htdocs/user/list.php +++ b/htdocs/user/list.php @@ -1189,13 +1189,14 @@ while ($i < $imaxinloop) { // Multicompany enabled if (isModEnabled('multicompany') && is_object($mc) && empty($conf->global->MULTICOMPANY_TRANSVERSE_MODE)) { if (!empty($arrayfields['u.entity']['checked'])) { - print ''; if (!$obj->entity) { - print $langs->trans("AllEntities"); + $labeltouse = $langs->trans("AllEntities"); } else { $mc->getInfo($obj->entity); - print $mc->label; + $labeltouse = $mc->label; } + print ''; + print $labeltouse; print ''; if (!$i) { $totalarray['nbfield']++;