diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-07-02 20:10:20 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-07-02 20:10:20 +0000 |
commit | fcee5e4f89f4955e3db7241c26d5f40ccf0ff45c (patch) | |
tree | fe95f9df1de0eadca0f9f764ea7905f506d4bf54 /includes/form.inc | |
parent | 451f44c4f0f000c1ec38aece219aa9d74e69ac39 (diff) | |
download | brdo-fcee5e4f89f4955e3db7241c26d5f40ccf0ff45c.tar.gz brdo-fcee5e4f89f4955e3db7241c26d5f40ccf0ff45c.tar.bz2 |
#34434 by beginner, fix an incorrect array key check.
Diffstat (limited to 'includes/form.inc')
-rw-r--r-- | includes/form.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/form.inc b/includes/form.inc index 3088e6339..79c587bcf 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); } } |