Update user.class.php

This commit is contained in:
Laurent Destailleur 2019-02-03 19:25:11 +01:00 committed by GitHub
parent 62d677118d
commit bd2c7092a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1520,7 +1520,7 @@ class User extends CommonObject
$error++;
}
}
elseif(!empty($adh->error) || !empty($adh->errors))
elseif ($result < 0)
{
$this->error=$adh->error;
$this->errors=$adh->errors;