From 0f4c59689d607d6b3d9b35ff33383b6afb4fbf16 Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Tue, 30 Aug 2022 17:26:18 +0200 Subject: [PATCH 1/2] Fix updating member need functions2.lib.php for clean_url() --- htdocs/adherents/class/adherent.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/adherents/class/adherent.class.php b/htdocs/adherents/class/adherent.class.php index 1f01f608fb0..0d7f6365fa4 100644 --- a/htdocs/adherents/class/adherent.class.php +++ b/htdocs/adherents/class/adherent.class.php @@ -655,6 +655,8 @@ class Adherent extends CommonObject public function update($user, $notrigger = 0, $nosyncuser = 0, $nosyncuserpass = 0, $nosyncthirdparty = 0, $action = 'update') { global $conf, $langs, $hookmanager; + + require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php'; $nbrowsaffected = 0; $error = 0; From a7529c171dd3083b45188f28cddc5763f8301fd4 Mon Sep 17 00:00:00 2001 From: stickler-ci Date: Tue, 30 Aug 2022 15:33:18 +0000 Subject: [PATCH 2/2] Fixing style errors. --- htdocs/adherents/class/adherent.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/adherents/class/adherent.class.php b/htdocs/adherents/class/adherent.class.php index 0d7f6365fa4..f5784b43fb2 100644 --- a/htdocs/adherents/class/adherent.class.php +++ b/htdocs/adherents/class/adherent.class.php @@ -655,7 +655,7 @@ class Adherent extends CommonObject public function update($user, $notrigger = 0, $nosyncuser = 0, $nosyncuserpass = 0, $nosyncthirdparty = 0, $action = 'update') { global $conf, $langs, $hookmanager; - + require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php'; $nbrowsaffected = 0;