Commit 40ac96eb authored by Gábor Hojtsy's avatar Gábor Hojtsy

#103391 follow up patch by bdragon: fix E_NOTICE by checking if href is set

parent 8836d94e
...@@ -1119,7 +1119,7 @@ function theme_links($links, $attributes = array('class' => 'links')) { ...@@ -1119,7 +1119,7 @@ function theme_links($links, $attributes = array('class' => 'links')) {
if ($i == $num_links) { if ($i == $num_links) {
$class .= ' last'; $class .= ' last';
} }
if ($link['href'] == $_GET['q']) { if (isset($link['href']) && $link['href'] == $_GET['q']) {
$class .= ' active'; $class .= ' active';
} }
$output .= '<li class="'. $class .'">'; $output .= '<li class="'. $class .'">';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment