diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/contact.module | 2 | ||||
-rw-r--r-- | modules/contact/contact.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/contact.module b/modules/contact.module index 3105a9bee..0b2803e35 100644 --- a/modules/contact.module +++ b/modules/contact.module @@ -289,7 +289,7 @@ function contact_mail_page_validate($form_id, &$form) { $result = db_query('SELECT cid FROM {contact}'); if (db_num_rows($result) == 1) { $category = db_fetch_object($result); - $form_values['cid'] = $category->category; + $form_values['cid'] = $category->cid; } 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 3105a9bee..0b2803e35 100644 --- a/modules/contact/contact.module +++ b/modules/contact/contact.module @@ -289,7 +289,7 @@ function contact_mail_page_validate($form_id, &$form) { $result = db_query('SELECT cid FROM {contact}'); if (db_num_rows($result) == 1) { $category = db_fetch_object($result); - $form_values['cid'] = $category->category; + $form_values['cid'] = $category->cid; } else { form_set_error('category', t('You must select a valid category.')); |