From d55a508b88e29e6b43c36b494596ddffc683d49c Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Fri, 9 Dec 2005 22:21:01 +0000
Subject: [PATCH] - Patch #40397 by DriesK: fixed problem with contact module.

---
 modules/contact.module         | 2 +-
 modules/contact/contact.module | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

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