diff --git a/htdocs/adherents/class/adherent.class.php b/htdocs/adherents/class/adherent.class.php index 01b98f4b200..f2e84e5127a 100644 --- a/htdocs/adherents/class/adherent.class.php +++ b/htdocs/adherents/class/adherent.class.php @@ -1789,13 +1789,11 @@ class Adherent extends CommonObject } } else { $error++; - $this->error = $acct->error; - $this->errors = $acct->errors; + $this->setErrorsFromObject($acct); } } else { $error++; - $this->error = $acct->error; - $this->errors = $acct->errors; + $this->setErrorsFromObject($acct); } }