Display hyphen instead of blank team

This commit is contained in:
Brian Miyaji
2018-10-18 10:57:59 +11:00
parent 46d3213bf9
commit 13542154c3

View File

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