Commit 18dfcb30 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#199016 by blackdog, slightly modified: default_category variable was not set...

#199016 by blackdog, slightly modified: default_category variable was not set in category form builder
parent 3355267c
......@@ -60,7 +60,8 @@ function contact_mail_page() {
// If there is more than one category available and no default category has been selected,
// prepend a default placeholder value.
if (!isset($default_category)) {
$categories = array(t('--')) + $categories;
$default_category = t('- Please choose -');
$categories = array($default_category) + $categories;
}
$form['cid'] = array('#type' => 'select',
'#title' => t('Category'),
......
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