#84189 by webchick. Properly initialize variables.

5.x
Neil Drumm 2006-11-26 23:14:59 +00:00
parent 760e495554
commit 69ea16f669
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}