Changeset d759217 in github for program/steps/mail/compose.inc


Ignore:
Timestamp:
Feb 1, 2008 9:40:37 PM (5 years ago)
Author:
till <till@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
8d3e2a5
Parents:
148e7bd
Message:
  • oops, fixed a parse error (which i just comitted) >:(
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/steps/mail/compose.inc

    r148e7bd rd759217  
    884884      $a_contacts[] = format_email_recipient($sql_arr['email'], JQ($sql_arr['name'])); 
    885885  } 
    886 if (isset($CONFIG['ldap_public'])) { 
    887   { 
    888 /* LDAP autocompletion */  
    889 foreach ($CONFIG['ldap_public'] as $ldapserv_config)  
    890   {  
    891   if ($ldapserv_config['fuzzy_search'] != 1)  
     886if (isset($CONFIG['ldap_public'])) 
     887  { 
     888  /* LDAP autocompletion */  
     889  foreach ($CONFIG['ldap_public'] as $ldapserv_config)  
    892890    {  
    893     continue;  
    894         }  
     891    if ($ldapserv_config['fuzzy_search'] != 1)  
     892      {  
     893      continue;  
     894          }  
    895895          
    896   $LDAP = new rcube_ldap($ldapserv_config);  
    897   $LDAP->connect();  
    898   $LDAP->set_pagesize(1000); 
    899    
    900   $results = $LDAP->search($ldapserv_config['mail_field'], "");  
     896    $LDAP = new rcube_ldap($ldapserv_config);  
     897    $LDAP->connect();  
     898    $LDAP->set_pagesize(1000); 
     899   
     900    $results = $LDAP->search($ldapserv_config['mail_field'], "");  
    901901  
    902   for ($i = 0; $i < $results->count; $i++)  
    903         {  
    904         if ($results->records[$i]['email'] != '')  
     902    for ($i = 0; $i < $results->count; $i++)  
    905903          {  
    906           $email = $results->records[$i]['email'];  
    907           $name = $results->records[$i]['name'];  
     904          if ($results->records[$i]['email'] != '')  
     905            {  
     906            $email = $results->records[$i]['email'];  
     907            $name = $results->records[$i]['name'];  
    908908                  
    909           $a_contacts[] = format_email_recipient($email, JQ($name));  
    910           }  
    911         }  
    912                   
    913   $LDAP->close();  
    914   } 
     909            $a_contacts[] = format_email_recipient($email, JQ($name));  
     910            }  
     911          } 
     912    $LDAP->close();  
     913    } 
    915914  } 
    916915if ($a_contacts)  
Note: See TracChangeset for help on using the changeset viewer.