Fix team list error

This commit is contained in:
Brian Miyaji
2014-02-21 10:05:54 +11:00
parent 84c51d6407
commit 8ebb6b59d3

View File

@@ -43,8 +43,12 @@ function sportspress_manage_posts_custom_column( $column, $post_id ) {
if ( $main_result ): if ( $main_result ):
$team_result = sportspress_array_value( $team_results, $main_result, null ); $team_result = sportspress_array_value( $team_results, $main_result, null );
else: else:
end( $team_results ); if ( is_array( $team_results ) ):
$team_result = prev( $team_results ); end( $team_results );
$team_result = prev( $team_results );
else:
$team_result = null;
endif;
endif; endif;
if ( $team_result != null ): if ( $team_result != null ):