Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
812795a9
Commit
812795a9
authored
Apr 01, 2006
by
Gerhard Killesreiter
Browse files
#56722
, Variable not passed by reference in comment.module, patch by chx
parent
94355dd8
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/contact.module
View file @
812795a9
...
...
@@ -463,8 +463,9 @@ function contact_mail_page() {
}
else
{
// If there is only one category, store its cid.
$category_keys
=
array_keys
(
$categories
);
$form
[
'cid'
]
=
array
(
'#type'
=>
'value'
,
'#value'
=>
array_shift
(
array_keys
(
$categor
ies
)
),
'#value'
=>
array_shift
(
$categor
y_keys
),
);
}
$form
[
'message'
]
=
array
(
'#type'
=>
'textarea'
,
...
...
modules/contact/contact.module
View file @
812795a9
...
...
@@ -463,8 +463,9 @@ function contact_mail_page() {
}
else
{
// If there is only one category, store its cid.
$category_keys
=
array_keys
(
$categories
);
$form
[
'cid'
]
=
array
(
'#type'
=>
'value'
,
'#value'
=>
array_shift
(
array_keys
(
$categor
ies
)
),
'#value'
=>
array_shift
(
$categor
y_keys
),
);
}
$form
[
'message'
]
=
array
(
'#type'
=>
'textarea'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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