Merge pull request #308 from kadimi/patch-31

Fix team name in player list
This commit is contained in:
Brian Miyaji
2018-10-18 10:56:18 +11:00
committed by GitHub

View File

@@ -194,7 +194,7 @@ foreach ( $groups as $group ):
if ( array_key_exists( 'team', $labels ) ):
$team = sp_array_value( $row, 'team', get_post_meta( $id, 'sp_current_team', true ) );
$team_name = sp_team_short_name( $team );
$team_name = $team ? sp_team_short_name( $team ) : '';
if ( $link_teams && false !== get_post_status( $team ) ):
$team_name = '<a href="' . get_post_permalink( $team ) . '">' . $team_name . '</a>';
endif;
@@ -250,4 +250,4 @@ foreach ( $groups as $group ):
$output .= '</div>';
endforeach;
?>
<?php echo $output; ?>
<?php echo $output; ?>