Fix home/away records being combined when opponent not in league table

This commit is contained in:
Brian Miyaji
2017-01-19 16:49:19 +11:00
parent 801ccfd7a4
commit aab5e80d18

View File

@@ -268,8 +268,10 @@ class SP_League_Table extends SP_Custom_Post{
foreach ( $results as $team_id => $team_result ):
if ( ! in_array( $team_id, $team_ids ) )
if ( ! in_array( $team_id, $team_ids ) ) {
$i++;
continue;
}
if ( $team_result ): foreach ( $team_result as $key => $value ):