diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-10 10:38:00 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-10 10:38:00 +0000 |
commit | 18dfcb30ed3f42d294f881db5e76f0aaf1bc0d1c (patch) | |
tree | 2602c604b2aa0fc30baf45a4ea03011bc1492ce4 | |
parent | 3355267c3bd8498a84228509adef3dbb0de2e1b0 (diff) | |
download | brdo-18dfcb30ed3f42d294f881db5e76f0aaf1bc0d1c.tar.gz brdo-18dfcb30ed3f42d294f881db5e76f0aaf1bc0d1c.tar.bz2 |
#199016 by blackdog, slightly modified: default_category variable was not set in category form builder
-rw-r--r-- | modules/contact/contact.pages.inc | 3 |
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'), |