diff options
author | alecpl <alec@alec.pl> | 2011-12-21 10:07:42 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-12-21 10:07:42 +0000 |
commit | 96c946ee6ced0a9a68ef251528a3f900d5a01396 (patch) | |
tree | aa48a1c71b47bb32be33261b0c16524b64cfdb7c /program/steps/mail/autocomplete.inc | |
parent | 89dc8499c3e51d426f685ff70e4e878d992ad2c7 (diff) |
- Applied fixes from trunk up to r5633
Diffstat (limited to 'program/steps/mail/autocomplete.inc')
-rw-r--r-- | program/steps/mail/autocomplete.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/program/steps/mail/autocomplete.inc b/program/steps/mail/autocomplete.inc index 281a4e9f7..6eea705ef 100644 --- a/program/steps/mail/autocomplete.inc +++ b/program/steps/mail/autocomplete.inc @@ -28,8 +28,10 @@ if ($RCMAIL->action == 'group-expand') { $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())) { - foreach ((array)$sql_arr['email'] as $email) + foreach ((array)$sql_arr['email'] as $email) { $members[] = format_email_recipient($email, $sql_arr['name']); + break; // only expand one email per contact + } } $separator = trim($RCMAIL->config->get('recipients_separator', ',')) . ' '; |