Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
d55a508b
Commit
d55a508b
authored
Dec 09, 2005
by
Dries Buytaert
Browse files
- Patch
#40397
by DriesK: fixed problem with contact module.
parent
7d977336
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/contact.module
View file @
d55a508b
...
...
@@ -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
->
c
ategory
;
$form_values
[
'cid'
]
=
$category
->
c
id
;
}
else
{
form_set_error
(
'category'
,
t
(
'You must select a valid category.'
));
...
...
modules/contact/contact.module
View file @
d55a508b
...
...
@@ -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
->
c
ategory
;
$form_values
[
'cid'
]
=
$category
->
c
id
;
}
else
{
form_set_error
(
'category'
,
t
(
'You must select a valid category.'
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment