Changeset d759217 in github for program/steps/mail/compose.inc
- Timestamp:
- Feb 1, 2008 9:40:37 PM (5 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 8d3e2a5
- Parents:
- 148e7bd
- File:
-
- 1 edited
-
program/steps/mail/compose.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
program/steps/mail/compose.inc
r148e7bd rd759217 884 884 $a_contacts[] = format_email_recipient($sql_arr['email'], JQ($sql_arr['name'])); 885 885 } 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) 886 if (isset($CONFIG['ldap_public'])) 887 { 888 /* LDAP autocompletion */ 889 foreach ($CONFIG['ldap_public'] as $ldapserv_config) 892 890 { 893 continue; 894 } 891 if ($ldapserv_config['fuzzy_search'] != 1) 892 { 893 continue; 894 } 895 895 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'], ""); 901 901 902 for ($i = 0; $i < $results->count; $i++) 903 { 904 if ($results->records[$i]['email'] != '') 902 for ($i = 0; $i < $results->count; $i++) 905 903 { 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']; 908 908 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 } 915 914 } 916 915 if ($a_contacts)
Note: See TracChangeset
for help on using the changeset viewer.
