Forgotten IF statement...

This commit is contained in:
savvasha
2020-08-26 08:21:08 +03:00
parent 2a38d08951
commit 8bf77c69a0

View File

@@ -430,7 +430,7 @@ class SP_Player_List extends SP_Secondary_Post {
// Add all team performance
if ( is_array( $team_performance ) ): foreach ( $team_performance as $team_id => $players ):
( $team && $team_id != $team ) continue;
if ( $team && $team_id != $team ) continue;
if ( is_array( $players ) ): foreach ( $players as $player_id => $player_performance ):
if ( array_key_exists( $player_id, $totals ) && is_array( $totals[ $player_id ] ) ):