diff --git a/htdocs/adherents/adherent.class.php b/htdocs/adherents/adherent.class.php index 858b2533fdd..69396911da5 100644 --- a/htdocs/adherents/adherent.class.php +++ b/htdocs/adherents/adherent.class.php @@ -20,7 +20,6 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id$ - * $Source$ */ /** @@ -569,6 +568,8 @@ class Adherent { if ($this->user_id && ! $nosyncuser) { + require_once(DOL_DOCUMENT_ROOT."/user.class.php"); + // This member is linked with a user, so we also update users informations // if this is an update. $luser=new User($this->db); @@ -774,6 +775,8 @@ class Adherent if ($this->user_id && ! $nosyncuser) { + require_once(DOL_DOCUMENT_ROOT."/user.class.php"); + // This member is linked with a user, so we also update users informations // if this is an update. $luser=new User($this->db); diff --git a/htdocs/user.class.php b/htdocs/user.class.php index f2c32484575..0cdc54aab8c 100644 --- a/htdocs/user.class.php +++ b/htdocs/user.class.php @@ -22,7 +22,6 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id$ - * $Source$ */ /** @@ -984,6 +983,8 @@ class User { if ($this->fk_member && ! $nosyncmember) { + require_once(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php"); + // This user is linked with a member, so we also update members informations // if this is an update. $adh=new Adherent($this->db); @@ -1172,6 +1173,8 @@ class User if ($this->fk_member && ! $nosyncmember) { + require_once(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php"); + // This user is linked with a member, so we also update members informations // if this is an update. $adh=new Adherent($this->db);