diff --git a/htdocs/user/card.php b/htdocs/user/card.php
index aa27914e1d5..05ef3908b1b 100644
--- a/htdocs/user/card.php
+++ b/htdocs/user/card.php
@@ -264,22 +264,21 @@ if (($action == 'addgroup' || $action == 'removegroup') && $caneditfield)
$editgroup->fetch($group);
$editgroup->oldcopy=clone $editgroup;
- $object->fetch($id);
- if ($action == 'addgroup') {
- $object->SetInGroup($group, ($conf->multicompany->transverse_mode ? GETPOST("entity") : $editgroup->entity));
- }
- if ($action == 'removegroup') {
- $object->RemoveFromGroup($group, ($conf->multicompany->transverse_mode ? GETPOST("entity") : $editgroup->entity));
- }
+ $object->fetch($id);
+ if ($action == 'addgroup') {
+ $object->SetInGroup($group, ($conf->multicompany->transverse_mode ? GETPOST("entity") : $editgroup->entity));
+ }
+ if ($action == 'removegroup') {
+ $object->RemoveFromGroup($group, ($conf->multicompany->transverse_mode ? GETPOST("entity") : $editgroup->entity));
+ }
- if ($result > 0) {
- header("Location: ".$_SERVER['PHP_SELF'].'?id='.$id);
- exit;
- } else {
- setEventMessage($object->error, 'errors');
- }
- }
- }
+ if ($result > 0) {
+ header("Location: ".$_SERVER['PHP_SELF'].'?id='.$id);
+ exit;
+ } else {
+ setEventMessage($object->error, 'errors');
+ }
+ }
if ($action == 'update' && !$_POST["cancel"]) {
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
@@ -1154,14 +1153,14 @@ else
dol_fiche_head($head, 'user', $title, 0, 'user');
dol_banner_tab($object,'id','',$user->rights->user->user->lire || $user->admin);
-
-
+
+
print '
';
print '
';
-
+
print '
';
print '
';
-
+
// Login
print '| '.$langs->trans("Login").' | ';
if (! empty($object->ldap_sid) && $object->statut==0)
@@ -1345,13 +1344,13 @@ else
}
print '
';
-
+
print '
';
print '
';
-
+
print '
';
print '
';
-
+
print '| '.$langs->trans("LastConnexion").' | ';
print ''.dol_print_date($object->datelastlogin,"dayhour").' | ';
print "
\n";
@@ -1445,10 +1444,10 @@ else
print "
\n";
print '
';
-
+
print '
';
print '';
-
+
dol_fiche_end();
@@ -1694,7 +1693,7 @@ else
print '';
print '';
}
-
+
// Lastname
print "";
print '| '.$langs->trans("Lastname").' | ';