summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-12-10 10:38:00 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-12-10 10:38:00 +0000
commit18dfcb30ed3f42d294f881db5e76f0aaf1bc0d1c (patch)
tree2602c604b2aa0fc30baf45a4ea03011bc1492ce4 /modules
parent3355267c3bd8498a84228509adef3dbb0de2e1b0 (diff)
downloadbrdo-18dfcb30ed3f42d294f881db5e76f0aaf1bc0d1c.tar.gz
brdo-18dfcb30ed3f42d294f881db5e76f0aaf1bc0d1c.tar.bz2
#199016 by blackdog, slightly modified: default_category variable was not set in category form builder
Diffstat (limited to 'modules')
-rw-r--r--modules/contact/contact.pages.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/contact/contact.pages.inc b/modules/contact/contact.pages.inc
index 9308ea4e5..1054d5882 100644
--- a/modules/contact/contact.pages.inc
+++ b/modules/contact/contact.pages.inc
@@ -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'),