Fix function return value used in write context.

This commit is contained in:
Brian Miyaji
2014-08-26 04:12:03 +10:00
parent 7e93edfee8
commit 7cb6143089
6 changed files with 12 additions and 6 deletions

View File

@@ -127,7 +127,8 @@ function sportspress_the_title( $title, $id = null ) {
foreach ( $teams as $team ):
$team_logos[] = get_the_post_thumbnail( $team, 'sportspress-fit-icon' );
endforeach;
if ( ! empty( array_filter( $team_logos ) ) ):
$team_logos = array_filter( $team_logos );
if ( ! empty( $team_logos ) ):
$title .= '<div class="sp-event-teams">';
$delimiter = get_option( 'sportspress_event_teams_delimiter', 'vs' );
$title .= implode( ' ' . $delimiter . ' ', $team_logos );