From 40ac96eb9437a07f123bafb3088ce21cae8bc269 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Thu, 30 Aug 2007 15:50:58 +0000 Subject: #103391 follow up patch by bdragon: fix E_NOTICE by checking if href is set --- includes/theme.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/theme.inc b/includes/theme.inc index 9250522e4..111593e5a 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -1119,7 +1119,7 @@ function theme_links($links, $attributes = array('class' => 'links')) { if ($i == $num_links) { $class .= ' last'; } - if ($link['href'] == $_GET['q']) { + if (isset($link['href']) && $link['href'] == $_GET['q']) { $class .= ' active'; } $output .= '
  • '; -- cgit v1.2.3