Retrait du check inutile sur strlen($this->code) dans l'update d'un utilisateur. Si son login est susceptible de changer, le code doit galement tre modifi.

This commit is contained in:
ywarnier 2007-02-26 00:37:37 +00:00
parent ac6d9645ca
commit e4a9a1fdfc

View File

@ -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;