Commit 812795a9 authored by Gerhard Killesreiter's avatar Gerhard Killesreiter
Browse files

#56722, Variable not passed by reference in comment.module, patch by chx

parent 94355dd8
......@@ -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($categories)),
'#value' => array_shift($category_keys),
);
}
$form['message'] = array('#type' => 'textarea',
......
......@@ -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($categories)),
'#value' => array_shift($category_keys),
);
}
$form['message'] = array('#type' => 'textarea',
......
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