diff --git a/modules/contact.module b/modules/contact.module
index 3105a9bee220ef09e5448ddd982820c6691aa59c..0b2803e352b053a28ad623c1f62779fd35346c9d 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 3105a9bee220ef09e5448ddd982820c6691aa59c..0b2803e352b053a28ad623c1f62779fd35346c9d 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.'));