From c0ccebdca2b8e07365bcef020836a25529d55665 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 26 Sep 2005 01:10:06 +0000 Subject: [PATCH] =?UTF-8?q?Possibilit=E9=20pour=20un=20user=20de=20modifie?= =?UTF-8?q?r=20ces=20infos=20(pour=20pouvoir=20modifier=20le=20mot=20de=20?= =?UTF-8?q?passe,=20il=20faut=20que=20la=20constante=20USER=5FALLOW=5FPASS?= =?UTF-8?q?WORD=5FCHANGE=20soit=20d=E9finie).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/user.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/user.class.php b/htdocs/user.class.php index 472bb10ae78..adb2b794876 100644 --- a/htdocs/user.class.php +++ b/htdocs/user.class.php @@ -691,11 +691,12 @@ class User $sql .= " name = '$this->nom'"; $sql .= ", firstname = '$this->prenom'"; $sql .= ", login = '$this->login'"; + if ($this->pass) $sql .= ", pass = '$this->pass'"; + $sql .= ", admin = $this->admin"; $sql .= ", office_phone = '$this->office_phone'"; $sql .= ", office_fax = '$this->office_fax'"; $sql .= ", user_mobile = '$this->user_mobile'"; $sql .= ", email = '$this->email'"; - $sql .= ", admin = $this->admin"; $sql .= ", webcal_login = '$this->webcal_login'"; $sql .= ", code = '$this->code'"; $sql .= ", note = '$this->note'";