From 69ea16f669a63d63822fdd069d0abe415c470b4c Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Sun, 26 Nov 2006 23:14:59 +0000 Subject: #84189 by webchick. Properly initialize variables. --- includes/theme.inc | 4 ++++ 1 file changed, 4 insertions(+) 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); } -- cgit v1.2.3