Index: modules/contact.module =================================================================== RCS file: /cvs/drupal/drupal/modules/contact.module,v retrieving revision 1.18 diff -u -r1.18 contact.module --- modules/contact.module 27 Jun 2005 18:33:32 -0000 1.18 +++ modules/contact.module 30 Jul 2005 01:10:46 -0000 @@ -297,7 +297,12 @@ $output = variable_get('contact_form_information', t('You can leave us a message using the contact form below.')); $output .= form_textfield(t('Name'), 'name', $edit['name'], 60, 255, NULL, NULL, TRUE); $output .= form_textfield(t('E-mail'), 'mail', $edit['mail'], 60, 255, NULL, NULL, TRUE); - $output .= form_select(t('Subject'), 'subject', $edit['subject'], $subjects, NULL, NULL, NULL, TRUE); + if (count($subjects) == 2) { + $output .= form_hidden('subject', end($subjects)); + } + else { + $output .= form_select(t('Subject'), 'subject', $edit['subject'], $subjects, NULL, NULL, NULL, TRUE); + } $output .= form_textarea(t('Message'), 'message', $edit['message'], 60, 5, NULL, NULL, TRUE); $output .= form_submit(t('Send e-mail')); $output = form($output);