From 9b9721bb0a627dc973c6dae7e71c5876728b3693 Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@users.sourceforge.net>
Date: Sun, 19 Sep 2010 14:45:55 +0000
Subject: [PATCH] Fix: mailman disabled

---
 htdocs/adherents/class/adherent.class.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/htdocs/adherents/class/adherent.class.php b/htdocs/adherents/class/adherent.class.php
index b7ae82ae61d..f2261548ef4 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)
-- 
GitLab