Fixes ML's replace_email_in_all function (Closes #1592).
authorStéphane Jacob <sj@m4x.org>
Sun, 8 Apr 2012 19:57:45 +0000 (21:57 +0200)
committerStéphane Jacob <sj@m4x.org>
Sun, 8 Apr 2012 19:57:45 +0000 (21:57 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
ChangeLog
classes/mmlist.php

index d2e0c1f..d6a1ca6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,10 @@
 ================================================================================
 VERSION 1.1.7                                                         XX XX XXXX
 
+Bug:
+
+    * #1592: Fixes ML's replace_email_in_all function                       -JAC
+
 ================================================================================
 VERSION 1.1.6                                                         14 11 2011
 
index efd4067..c01f8ab 100644 (file)
@@ -53,8 +53,8 @@ class MMList extends XmlrpcClient
         }
         $changed_lists = 0;
         foreach ($all_lists as $list) {
-            if ($list->sub) {
-                $this->replace_email($list->list, $old_email, $new_email);
+            if ($list['sub']) {
+                $this->replace_email($list['list'], $old_email, $new_email);
                 $changed_lists++;
             }
         }