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

6.x
Gábor Hojtsy 2007-08-30 15:50:58 +00:00
parent 8836d94ecd
commit 40ac96eb94
1 changed files with 1 additions and 1 deletions

View File

@ -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 .'">';