From e4a9a1fdfc56319b6401c69acf8ce4b9d7d846c7 Mon Sep 17 00:00:00 2001 From: ywarnier Date: Mon, 26 Feb 2007 00:37:37 +0000 Subject: [PATCH] =?UTF-8?q?Retrait=20du=20check=20inutile=20sur=20strlen($?= =?UTF-8?q?this->code)=20dans=20l'update=20d'un=20utilisateur.=20Si=20son?= =?UTF-8?q?=20login=20est=20susceptible=20de=20changer,=20le=20code=20doit?= =?UTF-8?q?=20=E9galement=20=EAtre=20modifi=E9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/user.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/user.class.php b/htdocs/user.class.php index 75f0f4e1a39..c3928f73b6e 100644 --- a/htdocs/user.class.php +++ b/htdocs/user.class.php @@ -836,7 +836,7 @@ class User $this->email=trim($this->email); $this->note=trim($this->note); $this->admin=$this->admin?$this->admin:0; - if (!strlen($this->code)) $this->code = $this->login; + $this->code = $this->login; dolibarr_syslog("User::update notrigger=".$notrigger." nom=".$this->nom.", prenom=".$this->prenom); $error=0;