diff --git a/htdocs/user/fiche.php b/htdocs/user/fiche.php
index 49993132e1d..333dbe5f568 100644
--- a/htdocs/user/fiche.php
+++ b/htdocs/user/fiche.php
@@ -96,9 +96,9 @@ if ($_POST["action"] == 'update' && $user->admin)
}
}
-if ($action == 'password' && $user->admin)
+if ($_GET["action"] == 'password' && $user->admin)
{
- $edituser = new User($db, $id);
+ $edituser = new User($db, $_GET["id"]);
$edituser->fetch();
if ($edituser->password('',$conf->password_encrypted))
@@ -366,12 +366,12 @@ else
if ($user->admin)
{
- print 'Editer';
+ print 'Editer';
}
if ($user->id == $id or $user->admin)
{
- print 'Envoyer nouveau mot de passe';
+ print 'Envoyer nouveau mot de passe';
}
if ($user->admin)
@@ -394,7 +394,7 @@ else
/* Edition */
/* */
/* ************************************************************************** */
- if ($action == 'edit' && $user->admin && !$fuser->societe_id)
+ if ($_GET["action"] == 'edit' && $user->admin)
{
print_fiche_titre("Edition fiche utilisateur",$message);
print '
';
@@ -414,11 +414,19 @@ else
print "