Skip to content
Snippets Groups Projects
Commit d4820964 authored by Brett T Bieber's avatar Brett T Bieber
Browse files

Check if description is set before evaluating it.

git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x@164 20a16fea-79d4-4915-8869-1ea9d5ebf173
parent bd958fa5
Branches
Tags
No related merge requests found
......@@ -120,7 +120,7 @@ function unl_wdn_form_element_label($variables)
$output = '<label ' . drupal_attributes($attributes) . '>' . PHP_EOL
. ($element['#required'] ? '<span class="required">*</span>' . PHP_EOL : '')
. filter_xss_admin($element['#title']) . PHP_EOL
. ($element['#description'] ? '<span class="helper">' . $element['#description'] . '</span>' . PHP_EOL : '')
. (isset($element['#description']) ? '<span class="helper">' . $element['#description'] . '</span>' . PHP_EOL : '')
.'</label>' . PHP_EOL;
return $output;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment