Fix home/away records being combined when opponent not in league table
This commit is contained in:
@@ -268,8 +268,10 @@ class SP_League_Table extends SP_Custom_Post{
|
|||||||
|
|
||||||
foreach ( $results as $team_id => $team_result ):
|
foreach ( $results as $team_id => $team_result ):
|
||||||
|
|
||||||
if ( ! in_array( $team_id, $team_ids ) )
|
if ( ! in_array( $team_id, $team_ids ) ) {
|
||||||
|
$i++;
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if ( $team_result ): foreach ( $team_result as $key => $value ):
|
if ( $team_result ): foreach ( $team_result as $key => $value ):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user