From 18dfcb30ed3f42d294f881db5e76f0aaf1bc0d1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Mon, 10 Dec 2007 10:38:00 +0000 Subject: #199016 by blackdog, slightly modified: default_category variable was not set in category form builder --- modules/contact/contact.pages.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules') 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'), -- cgit v1.2.3