diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-11-26 23:14:59 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-11-26 23:14:59 +0000 |
commit | 69ea16f669a63d63822fdd069d0abe415c470b4c (patch) | |
tree | e70bb29c330edc7118eec264364a38928f9856a8 | |
parent | 760e4955546901298559ccadae8224e6ac992176 (diff) | |
download | brdo-69ea16f669a63d63822fdd069d0abe415c470b4c.tar.gz brdo-69ea16f669a63d63822fdd069d0abe415c470b4c.tar.bz2 |
#84189 by webchick. Properly initialize variables.
-rw-r--r-- | includes/theme.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index 05b5e4815..de1ca0cbe 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -533,6 +533,10 @@ function theme_links($links, $attributes = array('class' => 'links')) { // Is the title HTML? $html = isset($link['html']) && $link['html']; + // Initialize fragment and query variables. + $link['query'] = isset($link['query']) ? $link['query'] : NULL; + $link['fragment'] = isset($link['fragment']) ? $link['fragment'] : NULL; + if ($link['href']) { $output .= l($link['title'], $link['href'], $link['attributes'], $link['query'], $link['fragment'], FALSE, $html); } |