diff --git a/includes/form.inc b/includes/form.inc index 3088e6339e97f548ed378ab66de70ab8ca179da1..79c587bcff70d2425a4585f262bbfaf4af55b82c 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -883,7 +883,7 @@ function weight_value(&$form) { function expand_radios($element) { if (count($element['#options']) > 0) { foreach ($element['#options'] as $key => $choice) { - if (!$element[$key]) { + if (!isset($element[$key])) { $element[$key] = array('#type' => 'radio', '#title' => $choice, '#return_value' => $key, '#default_value' => $element['#default_value'], '#attributes' => $element['#attributes'], '#parents' => $element['#parents'], '#spawned' => TRUE); } }