Fix test error on setPassword
This commit is contained in:
parent
f3ec2c5223
commit
69376a4e8b
@ -2333,7 +2333,7 @@ class User extends CommonObject
|
||||
|
||||
if ($result >= 0) {
|
||||
$result = $adh->setPassword($user, $this->pass, (empty($conf->global->DATABASE_PWD_ENCRYPTED) ? 0 : 1), 1); // Cryptage non gere dans module adherent
|
||||
if ($result < 0) {
|
||||
if (is_numeric($result) && $result < 0) {
|
||||
$this->error = $adh->error;
|
||||
dol_syslog(get_class($this)."::setPassword ".$this->error, LOG_ERR);
|
||||
$error++;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user