summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authortill <till@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-02-02 02:40:37 +0000
committertill <till@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-02-02 02:40:37 +0000
commit34a424024996c1391bf2500de40cdb7538a9dd7d (patch)
tree7fbc970433146fc208fb27cca6a66510c61a15af /roundcubemail/program
parent6cf5d8793f192ecf1cc23e82cda0c0fa6b447d9a (diff)
* oops, fixed a parse error (which i just comitted) >:(
git-svn-id: https://svn.roundcube.net/trunk@989 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/steps/mail/compose.inc43
1 files changed, 21 insertions, 22 deletions
diff --git a/roundcubemail/program/steps/mail/compose.inc b/roundcubemail/program/steps/mail/compose.inc
index 89fc9e9bc..915d5a03a 100644
--- a/roundcubemail/program/steps/mail/compose.inc
+++ b/roundcubemail/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)
{