From: Stéphane Jacob Date: Sun, 8 Apr 2012 19:57:45 +0000 (+0200) Subject: Fixes ML's replace_email_in_all function (Closes #1592). X-Git-Tag: core/1.1.7~1 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=0d35fae8108f34b1d13ea18cfd0af7911fe25182;p=platal.git Fixes ML's replace_email_in_all function (Closes #1592). Signed-off-by: Stéphane Jacob --- diff --git a/ChangeLog b/ChangeLog index d2e0c1f..d6a1ca6 100644 --- 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 diff --git a/classes/mmlist.php b/classes/mmlist.php index efd4067..c01f8ab 100644 --- a/classes/mmlist.php +++ b/classes/mmlist.php @@ -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++; } }