set errors from object

This commit is contained in:
Frédéric FRANCE 2023-02-24 17:01:00 +01:00
parent 652a215a07
commit b6089882af

View File

@ -1789,13 +1789,11 @@ class Adherent extends CommonObject
} }
} else { } else {
$error++; $error++;
$this->error = $acct->error; $this->setErrorsFromObject($acct);
$this->errors = $acct->errors;
} }
} else { } else {
$error++; $error++;
$this->error = $acct->error; $this->setErrorsFromObject($acct);
$this->errors = $acct->errors;
} }
} }