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
c17ff754
Commit
c17ff754
authored
Dec 09, 2005
by
Dries Buytaert
Browse files
- Patch
#40397
by DriesK: global contact mails are not sent.
parent
1d0fa04d
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/contact.module
View file @
c17ff754
...
...
@@ -286,10 +286,10 @@ function contact_mail_page_validate($form_id, &$form) {
global
$form_values
;
if
(
!
$form
[
'cid'
])
{
// Look if there is only one category
$result
=
db_query
(
'SELECT c
ategory
FROM {contact}'
);
$result
=
db_query
(
'SELECT c
id
FROM {contact}'
);
if
(
db_num_rows
(
$result
)
==
1
)
{
$category
=
db_fetch_object
(
$result
);
$form_values
[
'c
ategory
'
]
=
$category
->
category
;
$form_values
[
'c
id
'
]
=
$category
->
category
;
}
else
{
form_set_error
(
'category'
,
t
(
'You must select a valid category.'
));
...
...
modules/contact/contact.module
View file @
c17ff754
...
...
@@ -286,10 +286,10 @@ function contact_mail_page_validate($form_id, &$form) {
global
$form_values
;
if
(
!
$form
[
'cid'
])
{
// Look if there is only one category
$result
=
db_query
(
'SELECT c
ategory
FROM {contact}'
);
$result
=
db_query
(
'SELECT c
id
FROM {contact}'
);
if
(
db_num_rows
(
$result
)
==
1
)
{
$category
=
db_fetch_object
(
$result
);
$form_values
[
'c
ategory
'
]
=
$category
->
category
;
$form_values
[
'c
id
'
]
=
$category
->
category
;
}
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