diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-12-09 15:56:23 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-12-09 15:56:23 +0000 |
commit | c17ff754801fcd5652320e16e8dae16fcc4d4f5e (patch) | |
tree | f246fb0f0f72896b3e02b27233b90e4a2dd114d2 | |
parent | 1d0fa04d3383bacc9133a33e2acd3ea665407917 (diff) | |
download | brdo-c17ff754801fcd5652320e16e8dae16fcc4d4f5e.tar.gz brdo-c17ff754801fcd5652320e16e8dae16fcc4d4f5e.tar.bz2 |
- Patch #40397 by DriesK: global contact mails are not sent.
-rw-r--r-- | modules/contact.module | 4 | ||||
-rw-r--r-- | modules/contact/contact.module | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/contact.module b/modules/contact.module index 15e910057..03d23b579 100644 --- a/modules/contact.module +++ b/modules/contact.module @@ -286,10 +286,10 @@ function contact_mail_page_validate($form_id, &$form) { global $form_values; if (!$form['cid']) { // Look if there is only one category - $result = db_query('SELECT category FROM {contact}'); + $result = db_query('SELECT cid FROM {contact}'); if (db_num_rows($result) == 1) { $category = db_fetch_object($result); - $form_values['category'] = $category->category; + $form_values['cid'] = $category->category; } else { form_set_error('category', t('You must select a valid category.')); diff --git a/modules/contact/contact.module b/modules/contact/contact.module index 15e910057..03d23b579 100644 --- a/modules/contact/contact.module +++ b/modules/contact/contact.module @@ -286,10 +286,10 @@ function contact_mail_page_validate($form_id, &$form) { global $form_values; if (!$form['cid']) { // Look if there is only one category - $result = db_query('SELECT category FROM {contact}'); + $result = db_query('SELECT cid FROM {contact}'); if (db_num_rows($result) == 1) { $category = db_fetch_object($result); - $form_values['category'] = $category->category; + $form_values['cid'] = $category->category; } else { form_set_error('category', t('You must select a valid category.')); |