From b6089882af30cf856a5dbbde2f7783a0af918c89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Fri, 24 Feb 2023 17:01:00 +0100 Subject: [PATCH] set errors from object --- htdocs/adherents/class/adherent.class.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); } }