diff --git a/htdocs/user/fiche.php b/htdocs/user/fiche.php index d260e8b4f60..660b9fe1cfb 100644 --- a/htdocs/user/fiche.php +++ b/htdocs/user/fiche.php @@ -326,7 +326,7 @@ if ($action == 'update' && ! $_POST["cancel"]) $object->firstname = GETPOST("prenom"); $object->login = GETPOST("login"); $object->pass = GETPOST("password"); - $object->admin = GETPOST("admin"); + $object->admin = empty($user->admin)?0:GETPOST("admin"); // A user can only be set admin by an admin $object->office_phone=GETPOST("office_phone"); $object->office_fax = GETPOST("office_fax"); $object->user_mobile= GETPOST("user_mobile");