diff --git a/htdocs/user/list.php b/htdocs/user/list.php
index 8642c569752..e92fbf33280 100644
--- a/htdocs/user/list.php
+++ b/htdocs/user/list.php
@@ -1072,14 +1072,15 @@ while ($i < $imaxinloop) {
}
}
+ // Phone
if (!empty($arrayfields['u.office_phone']['checked'])) {
- print '
'.dol_print_phone($obj->office_phone, $obj->country_code, 0, $obj->rowid, 'AC_TEL', ' ', 'phone')." | \n";
+ print ''.dol_print_phone($obj->office_phone, $obj->country_code, 0, $obj->rowid, 'AC_TEL', ' ', 'phone')." | \n";
if (!$i) {
$totalarray['nbfield']++;
}
}
if (!empty($arrayfields['u.user_mobile']['checked'])) {
- print ''.dol_print_phone($obj->user_mobile, $obj->country_code, 0, $obj->rowid, 'AC_TEL', ' ', 'mobile')." | \n";
+ print ''.dol_print_phone($obj->user_mobile, $obj->country_code, 0, $obj->rowid, 'AC_TEL', ' ', 'mobile')." | \n";
if (!$i) {
$totalarray['nbfield']++;
}
@@ -1091,10 +1092,10 @@ while ($i < $imaxinloop) {
}
}
if (!empty($arrayfields['u.api_key']['checked'])) {
- print '';
+ print ' | ';
if ($obj->api_key) {
if ($canreadsecretapi) {
- print $obj->api_key;
+ print dol_escape_htmltag($obj->api_key);
} else {
print ''.$langs->trans("Hidden").'';
}
|