Skip to content

Commit

Permalink
close anchor properly
Browse files Browse the repository at this point in the history
If we start the anchor outside the if, we need to close it outside the if.
  • Loading branch information
bbannon authored Apr 18, 2024
1 parent 97ab90a commit 2dbc1b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions upcoming.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,10 @@ function print_upcoming_event ( $e, $date ) {
$catNum = abs(intval($e->getCategory()));
if ($catNum > 0 && !empty($categories[$catNum]['cat_icon_mime'])) {
$catIcon = "getIcon.php?cat_id=" . $catNum;
$link .= '<img src="' . $catIcon . '" alt="category icon"></a>';
$link .= '<img src="' . $catIcon . '" alt="category icon">';
}
}
echo $link;
echo "$link</a>";
}
}
if ( $private ) {
Expand Down

0 comments on commit 2dbc1b4

Please sign in to comment.