Index: contact.module =================================================================== RCS file: /cvs/drupal/drupal/modules/contact.module,v retrieving revision 1.47 diff -u -r1.47 contact.module --- contact.module 23 Mar 2006 09:29:35 -0000 1.47 +++ contact.module 31 Mar 2006 06:08:35 -0000 @@ -463,8 +463,9 @@ } else { // If there is only one category, store its cid. + $category = array_keys($categories); $form['cid'] = array('#type' => 'value', - '#value' => array_shift(array_keys($categories)), + '#value' => array_shift($category), ); } $form['message'] = array('#type' => 'textarea',