Make tests work
[platal.git] / classes / mmlist.php
index a94c722..c01f8ab 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2010 Polytechnique.org                              *
+ *  Copyright (C) 2003-2011 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -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++;
             }
         }