#34434 by beginner, fix an incorrect array key check.

5.x
Neil Drumm 2006-07-02 20:10:20 +00:00
parent 451f44c4f0
commit fcee5e4f89
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}