Commit 780d33c7 authored by Dries's avatar Dries
Browse files

- Patch #43429 by drumm: bug fix: made comparison of checkboxes more strict.

parent 399302a2
......@@ -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'])) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment