Skip to content

Commit

Permalink
Html Validation: dont print empty span tags
Browse files Browse the repository at this point in the history
  • Loading branch information
mantis committed Apr 13, 2009
1 parent cf155eb commit 3b921fa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/print_api.php
Expand Up @@ -397,15 +397,17 @@ function print_news_entry( $p_headline, $p_body, $p_poster_id, $p_view_state, $p
print_user( $p_poster_id );
$output = '';

$output .= ' <span class="small">';
if( 1 == $p_announcement ) {
$output .= ' <span class="small">';
$output .= '[' . lang_get( 'announcement' ) . ']';
$output .= '</span>';
}
if( VS_PRIVATE == $p_view_state ) {
$output .= ' <span class="small">';
$output .= '[' . lang_get( 'private' ) . ']';
$output .= '</span>';
}

$output .= '</span>';
$output .= '</td>';
$output .= '</tr>';
$output .= '<tr>';
Expand Down

0 comments on commit 3b921fa

Please sign in to comment.