diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php index f92042879d9..544b0365d46 100644 --- a/htdocs/user/class/user.class.php +++ b/htdocs/user/class/user.class.php @@ -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++;