summaryrefslogtreecommitdiff
path: root/modules/contact.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/contact.module')
-rw-r--r--modules/contact.module3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/contact.module b/modules/contact.module
index da34b83e0..076d284b0 100644
--- a/modules/contact.module
+++ b/modules/contact.module
@@ -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',