Skip to content
Snippets Groups Projects
Commit 780d33c7 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent 399302a2
No related branches found
No related tags found
No related merge requests found
......@@ -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'])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment