From 062412e1a489c8547e0278f2a267ab868d4101e4 Mon Sep 17 00:00:00 2001 From: Gerhard Killesreiter Date: Thu, 13 Apr 2006 19:50:13 +0000 Subject: [PATCH] #58586, code simplification, patch by chx --- includes/form.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/form.inc b/includes/form.inc index 3a1379de005..052d9ea4624 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -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'])) {