summaryrefslogtreecommitdiff
path: root/includes/form.inc
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-12-22 02:14:53 -0800
committerwebchick <webchick@24967.no-reply.drupal.org>2011-12-22 02:14:53 -0800
commitfa4d4c5ce3c9e2d156ea00ca3d3299ac90d37a3b (patch)
tree0b43206fbd961f9ba8c969ab1634e85f3708966d /includes/form.inc
parent4735a9bf59c7428c96f5b6ad769ad11d4d7a618f (diff)
downloadbrdo-fa4d4c5ce3c9e2d156ea00ca3d3299ac90d37a3b.tar.gz
brdo-fa4d4c5ce3c9e2d156ea00ca3d3299ac90d37a3b.tar.bz2
Issue #866292 by marcingy, ygerasimov, quicksketch, attiks, furamag: Fixed '0' not displayed as checkbox / radios options (nor as any element #title).
Diffstat (limited to 'includes/form.inc')
-rw-r--r--includes/form.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/form.inc b/includes/form.inc
index bee168609..b0d0b4449 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -3992,7 +3992,7 @@ function theme_form_element_label($variables) {
$t = get_t();
// If title and required marker are both empty, output no label.
- if (empty($element['#title']) && empty($element['#required'])) {
+ if ((!isset($element['#title']) || $element['#title'] === '') && empty($element['#required'])) {
return '';
}