Same as last commit

This commit is contained in:
fhenry 2013-01-03 15:13:07 +01:00
parent f2a4e42712
commit 3e05581c70

View File

@ -916,7 +916,7 @@ class User extends CommonObject
$this->office_fax = $contact->fax;
$this->user_mobile = $contact->phone_mobile;
if (empty($login)) $login=strtolower(substr($contact->prenom, 0, 4)) . strtolower(substr($contact->nom, 0, 4));
if (empty($login)) $login=strtolower(substr($contact->firstname, 0, 4)) . strtolower(substr($contact->lastname, 0, 4));
$this->login = $login;
$this->db->begin();