summaryrefslogtreecommitdiff
path: root/includes/form.inc
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-07-02 20:10:20 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-07-02 20:10:20 +0000
commitfcee5e4f89f4955e3db7241c26d5f40ccf0ff45c (patch)
treefe95f9df1de0eadca0f9f764ea7905f506d4bf54 /includes/form.inc
parent451f44c4f0f000c1ec38aece219aa9d74e69ac39 (diff)
downloadbrdo-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.inc2
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);
}
}