till
2008-02-01 148e7bdf24c8623e60f6d857f7557d3932dca85b
* added an additional check so not everyone "attempts" ldap search if this is not configured (compose.patch did not contain this)

1 files modified
18 ■■■■ changed files
program/steps/mail/compose.inc 18 ●●●● patch | view | raw | blame | history
program/steps/mail/compose.inc
@@ -878,12 +878,13 @@
$a_contacts = array(); 
                                   
if ($result = $CONTACTS->list_records())
{
  {
  while ($sql_arr = $result->iterate())
    if ($sql_arr['email'])
      $a_contacts[] = format_email_recipient($sql_arr['email'], JQ($sql_arr['name']));
}
  }
if (isset($CONFIG['ldap_public'])) {
  {
/* LDAP autocompletion */ 
foreach ($CONFIG['ldap_public'] as $ldapserv_config) 
  { 
@@ -910,12 +911,11 @@
     } 
          
  $LDAP->close(); 
  }
  if ($a_contacts)
     {
  }
  }
if ($a_contacts)
  {
     $OUTPUT->set_env('contacts', $a_contacts); 
     }
  }
parse_template('compose');
?>