diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-08-30 15:50:58 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-08-30 15:50:58 +0000 |
commit | 40ac96eb9437a07f123bafb3088ce21cae8bc269 (patch) | |
tree | 695da3fc277d91c2f0381e6479f2764c3820ea77 /includes | |
parent | 8836d94ecdc88ab0d38525cb1a59918f245e5051 (diff) | |
download | brdo-40ac96eb9437a07f123bafb3088ce21cae8bc269.tar.gz brdo-40ac96eb9437a07f123bafb3088ce21cae8bc269.tar.bz2 |
#103391 follow up patch by bdragon: fix E_NOTICE by checking if href is set
Diffstat (limited to 'includes')
-rw-r--r-- | includes/theme.inc | 2 |
1 files changed, 1 insertions, 1 deletions
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 .= '<li class="'. $class .'">'; |