From d75921732befa98dc8164300662451c5e659d251 Mon Sep 17 00:00:00 2001 From: till Date: Sat, 2 Feb 2008 02:40:37 +0000 Subject: * oops, fixed a parse error (which i just comitted) >:( --- program/steps/mail/compose.inc | 43 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 22 deletions(-) (limited to 'program/steps') diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index 89fc9e9bc..915d5a03a 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -883,35 +883,34 @@ if ($result = $CONTACTS->list_records()) if ($sql_arr['email']) $a_contacts[] = format_email_recipient($sql_arr['email'], JQ($sql_arr['name'])); } -if (isset($CONFIG['ldap_public'])) { +if (isset($CONFIG['ldap_public'])) { -/* LDAP autocompletion */ -foreach ($CONFIG['ldap_public'] as $ldapserv_config) - { - if ($ldapserv_config['fuzzy_search'] != 1) + /* LDAP autocompletion */ + foreach ($CONFIG['ldap_public'] as $ldapserv_config) { - continue; - } + if ($ldapserv_config['fuzzy_search'] != 1) + { + continue; + } - $LDAP = new rcube_ldap($ldapserv_config); - $LDAP->connect(); - $LDAP->set_pagesize(1000); + $LDAP = new rcube_ldap($ldapserv_config); + $LDAP->connect(); + $LDAP->set_pagesize(1000); - $results = $LDAP->search($ldapserv_config['mail_field'], ""); + $results = $LDAP->search($ldapserv_config['mail_field'], ""); - for ($i = 0; $i < $results->count; $i++) - { - if ($results->records[$i]['email'] != '') + for ($i = 0; $i < $results->count; $i++) { - $email = $results->records[$i]['email']; - $name = $results->records[$i]['name']; - - $a_contacts[] = format_email_recipient($email, JQ($name)); - } - } + if ($results->records[$i]['email'] != '') + { + $email = $results->records[$i]['email']; + $name = $results->records[$i]['name']; - $LDAP->close(); - } + $a_contacts[] = format_email_recipient($email, JQ($name)); + } + } + $LDAP->close(); + } } if ($a_contacts) { -- cgit v1.2.3