summaryrefslogtreecommitdiff
path: root/includes/theme.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2011-09-17 14:10:53 -0400
committerDries Buytaert <dries@buytaert.net>2011-09-17 14:10:53 -0400
commit89c036717f583242bef91c90171627fe3c3de1bc (patch)
treeaa26530232c070969bd540df448f596e614de8a6 /includes/theme.inc
parenta9ad3ea15a528be270a3a2a15e019c8ae0bb81d4 (diff)
downloadbrdo-89c036717f583242bef91c90171627fe3c3de1bc.tar.gz
brdo-89c036717f583242bef91c90171627fe3c3de1bc.tar.bz2
- Patch #952772 by oriol_e9g, mdupont, bleen18, idflood: theme_html_tag() optional value not really optional.
Diffstat (limited to 'includes/theme.inc')
-rw-r--r--includes/theme.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index 6c2b64069..49865cfe0 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -1902,11 +1902,12 @@ function theme_feed_icon($variables) {
*/
function theme_html_tag($variables) {
$element = $variables['element'];
+ $attributes = isset($element['#attributes']) ? drupal_attributes($element['#attributes']) : '';
if (!isset($element['#value'])) {
- return '<' . $element['#tag'] . drupal_attributes($element['#attributes']) . " />\n";
+ return '<' . $element['#tag'] . $attributes . " />\n";
}
else {
- $output = '<' . $element['#tag'] . drupal_attributes($element['#attributes']) . '>';
+ $output = '<' . $element['#tag'] . $attributes . '>';
if (isset($element['#value_prefix'])) {
$output .= $element['#value_prefix'];
}