#58586, code simplification, patch by chx

4.7.x
Gerhard Killesreiter 2006-04-13 19:50:13 +00:00
parent b9d3b47ec6
commit 062412e1a4
1 changed files with 1 additions and 1 deletions

View File

@ -832,7 +832,7 @@ function theme_checkbox($element) {
$checkbox .= 'name="'. $element['#name'] .'" ';
$checkbox .= 'id="'. $element['#id'].'" ' ;
$checkbox .= 'value="'. $element['#return_value'] .'" ';
$checkbox .= ($element['#value'] || (string)$element['#return_value'] == (string)$element['#value']) ? ' checked="checked" ' : ' ';
$checkbox .= $element['#value'] ? ' checked="checked" ' : ' ';
$checkbox .= drupal_attributes($element['#attributes']) . ' />';
if (!is_null($element['#title'])) {