- Patch #40397 by DriesK: fixed problem with contact module.
parent
7d97733602
commit
d55a508b88
|
@ -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.'));
|
||||
|
|
Loading…
Reference in New Issue