Commit d55a508b authored by Dries's avatar Dries
Browse files

- Patch #40397 by DriesK: fixed problem with contact module.

parent 7d977336
......@@ -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.'));
......
......@@ -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.'));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment