summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-01-05 11:05:14 +0000
committerDries Buytaert <dries@buytaert.net>2006-01-05 11:05:14 +0000
commit780d33c77b4c1a60905ad19a8405f36b1d2d8c1d (patch)
tree2714204524a8d06615460c2ae253d1350cee922b
parent399302a2152213ba5d2753d77d94de525c9005ae (diff)
downloadbrdo-780d33c77b4c1a60905ad19a8405f36b1d2d8c1d.tar.gz
brdo-780d33c77b4c1a60905ad19a8405f36b1d2d8c1d.tar.bz2
- Patch #43429 by drumm: bug fix: made comparison of checkboxes more strict.
-rw-r--r--includes/form.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/form.inc b/includes/form.inc
index 287c250c6..bd6a5f18f 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -682,7 +682,7 @@ function theme_checkbox($element) {
$checkbox .= 'name="'. $element['#name'] .'" ';
$checkbox .= 'id="'. $element['#id'].'" ' ;
$checkbox .= 'value="'. $element['#return_value'] .'" ';
- $checkbox .= ($element['#value'] == $element['#return_value']) ? ' checked="checked" ' : ' ';
+ $checkbox .= ($element['#return_value'] == $element['#value']) ? ' checked="checked" ' : ' ';
$checkbox .= drupal_attributes($element['#attributes']) . ' />';
if (!is_null($element['#title'])) {