till
2008-02-01 148e7bdf24c8623e60f6d857f7557d3932dca85b
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');
?>