diff --git a/htdocs/adherents/class/adherent.class.php b/htdocs/adherents/class/adherent.class.php index b7ae82ae61da79a83ae9c5c654072991fbe4aa20..f2261548ef46c5296417a6b7f184eb71136e7e27 100644 --- a/htdocs/adherents/class/adherent.class.php +++ b/htdocs/adherents/class/adherent.class.php @@ -1182,9 +1182,9 @@ class Adherent extends CommonObject if ($result > 0) { // Rajout du nouveau cotisant dans les listes qui vont bien - if ($conf->global->ADHERENT_MAILMAN_LISTS_COTISANT && ! $adh->datefin) + if ($conf->global->ADHERENT_MAILMAN_LISTS_COTISANT && ! $this->datefin) { - $result=$adh->add_to_mailman($conf->global->ADHERENT_MAILMAN_LISTS_COTISANT); + $result=$this->add_to_mailman($conf->global->ADHERENT_MAILMAN_LISTS_COTISANT); } // Change properties of object (used by triggers)