[Svn] r4270 - branches/devel-addressbook/program/steps/mail

trac at roundcube.net trac at roundcube.net
Thu Nov 25 20:31:50 CET 2010


Author: thomasb
Date: 2010-11-25 13:31:50 -0600 (Thu, 25 Nov 2010)
New Revision: 4270

Modified:
   branches/devel-addressbook/program/steps/mail/autocomplete.inc
Log:
Fix group expansion

Modified: branches/devel-addressbook/program/steps/mail/autocomplete.inc
===================================================================
--- branches/devel-addressbook/program/steps/mail/autocomplete.inc	2010-11-25 18:53:14 UTC (rev 4269)
+++ branches/devel-addressbook/program/steps/mail/autocomplete.inc	2010-11-25 19:31:50 UTC (rev 4270)
@@ -29,8 +29,10 @@
     $abook->set_group($gid);
     $abook->set_pagesize(1000);  // TODO: limit number of group members by config
     $result = $abook->list_records(array('email','name'));
-    while ($result && ($sql_arr = $result->iterate()))
-      $members[] = format_email_recipient($sql_arr['email'], $sql_arr['name']);
+    while ($result && ($sql_arr = $result->iterate())) {
+      foreach ((array)$sql_arr['email'] as $email)
+        $members[] = format_email_recipient($email, $sql_arr['name']);
+    }
 
     $OUTPUT->command('replace_group_recipients', $gid, join(', ', $members));
   }

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list