--- optionwidgets.module 2011-03-13 13:50:16.000000000 +1100 +++ optionwidgets.module-2.9 2011-03-13 12:49:59.000000000 +1100 @@ -349,11 +349,10 @@ function optionwidgets_data2form($elemen $keys = array(); foreach ($values as $value) { $key = array_search($value, array_keys($options)); - if (isset($key) && $value) { + if (isset($key)) { $keys[] = $value; } } - if ($field['multiple'] || $element['#type'] == 'optionwidgets_onoff') { return array($field_key => $keys); } @@ -454,4 +453,4 @@ function theme_optionwidgets_onoff($elem function theme_optionwidgets_buttons($element) { return $element['#children']; -} +} \ No newline at end of file