diff --git a/label_help.module b/label_help.module index b32103f559c47c88ea311a5800afbc1bb4065fed..08598510422736ca0b94b1147fc9021d5e2fdf0a 100644 --- a/label_help.module +++ b/label_help.module @@ -99,7 +99,7 @@ function label_help_theme_registry_alter(&$theme_registry) { */ function label_help_theme_form_element_label($variables) { $desc = ''; - if (isset($variables['element']['#theme_options']['description at top'])) { + if (isset($variables['element']['#theme_options']['description at top']) && !empty($variables['element']['#theme_options']['description at top'])) { $desc = '<div class="description">' . t($variables['element']['#theme_options']['description at top']) . '</div>'; }