summaryrefslogtreecommitdiff
path: root/program/steps/mail/autocomplete.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-12-21 10:07:42 +0000
committeralecpl <alec@alec.pl>2011-12-21 10:07:42 +0000
commit96c946ee6ced0a9a68ef251528a3f900d5a01396 (patch)
treeaa48a1c71b47bb32be33261b0c16524b64cfdb7c /program/steps/mail/autocomplete.inc
parent89dc8499c3e51d426f685ff70e4e878d992ad2c7 (diff)
- Applied fixes from trunk up to r5633
Diffstat (limited to 'program/steps/mail/autocomplete.inc')
-rw-r--r--program/steps/mail/autocomplete.inc4
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', ',')) . ' ';