summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortill <till@php.net>2008-02-02 02:40:37 +0000
committertill <till@php.net>2008-02-02 02:40:37 +0000
commitd75921732befa98dc8164300662451c5e659d251 (patch)
tree823c57966fe62c19e3f4ca86e2dce27f19163b51
parent148e7bdf24c8623e60f6d857f7557d3932dca85b (diff)
* oops, fixed a parse error (which i just comitted) >:(
-rw-r--r--program/steps/mail/compose.inc43
1 files changed, 21 insertions, 22 deletions
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)
{