FIX Error message

This commit is contained in:
Laurent Destailleur 2016-05-13 19:55:49 +02:00
parent 2308d28c19
commit 8aebc37a5f

View File

@ -917,7 +917,7 @@ class User extends CommonObject
if (empty($this->login))
{
$langs->load("errors");
$this->error = $langs->trans("ErrorFieldRequired",$this->login);
$this->error = $langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("Login"));
return -1;
}
@ -987,7 +987,7 @@ class User extends CommonObject
{
// Call trigger
$result=$this->call_trigger('USER_CREATE',$user);
if ($result < 0) { $error++; }
if ($result < 0) { $error++; }
// End call triggers
}