From d75921732befa98dc8164300662451c5e659d251 Mon Sep 17 00:00:00 2001
From: till <till@php.net>
Date: Fri, 01 Feb 2008 21:40:37 -0500
Subject: [PATCH] * oops, fixed a parse error (which i just comitted) >:(

---
 program/steps/mail/compose.inc |   49 ++++++++++++++++++++++++-------------------------
 1 files changed, 24 insertions(+), 25 deletions(-)

diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc
index 89fc9e9..915d5a0 100644
--- a/program/steps/mail/compose.inc
+++ b/program/steps/mail/compose.inc
@@ -883,35 +883,34 @@
     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; 
- 	} 
-	 
-  $LDAP = new rcube_ldap($ldapserv_config); 
-  $LDAP->connect(); 
-  $LDAP->set_pagesize(1000);
-  
-  $results = $LDAP->search($ldapserv_config['mail_field'], ""); 
- 
-  for ($i = 0; $i < $results->count; $i++) 
- 	{ 
- 	if ($results->records[$i]['email'] != '') 
- 	  { 
- 	  $email = $results->records[$i]['email']; 
- 	  $name = $results->records[$i]['name']; 
- 		 
- 	  $a_contacts[] = format_email_recipient($email, JQ($name)); 
+    if ($ldapserv_config['fuzzy_search'] != 1) 
+      { 
+      continue; 
  	  } 
- 	} 
+	 
+    $LDAP = new rcube_ldap($ldapserv_config); 
+    $LDAP->connect(); 
+    $LDAP->set_pagesize(1000);
+  
+    $results = $LDAP->search($ldapserv_config['mail_field'], ""); 
+ 
+    for ($i = 0; $i < $results->count; $i++) 
+ 	  { 
+ 	  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) 
   { 

--
Gitblit v1.9.1