Check for teams in table only during tiebreaker comparison

This commit is contained in:
Brian Miyaji
2017-03-07 17:35:30 +11:00
parent ca278849cb
commit 606663803e

View File

@@ -252,7 +252,7 @@ class SP_League_Table extends SP_Custom_Post{
$teams = (array)get_post_meta( $event->ID, 'sp_team', false );
$teams = array_filter( $teams );
if ( sizeof( array_diff( $teams, $team_ids ) ) ) continue;
if ( ! $is_main_loop && sizeof( array_diff( $teams, $team_ids ) ) ) continue;
$results = (array)get_post_meta( $event->ID, 'sp_results', true );
$minutes = get_post_meta( $event->ID, 'sp_minutes', true );