Index: includes/form.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/form.inc,v
retrieving revision 1.42
diff -u -p -r1.42 form.inc
--- includes/form.inc	6 Jan 2006 07:15:47 -0000	1.42
+++ includes/form.inc	7 Jan 2006 05:30:34 -0000
@@ -755,7 +755,7 @@ function expand_checkboxes($element) {
     }
     foreach ($element['#options'] as $key => $choice) {
       if (!isset($element[$key])) {
-        $element[$key] = array('#type' => 'checkbox', '#processed' => TRUE, '#title' => $choice, '#default_value' => isset($value[$key]), '#attributes' => $element['#attributes']);
+        $element[$key] = array('#type' => 'checkbox', '#processed' => TRUE, '#title' => $choice, '#return_value'=>$key, '#default_value' => in_array($key, $value), '#attributes' => $element['#attributes']);
       }
     }
   }
