From 8bf77c69a014188ee7b5bc878802301b8f504f77 Mon Sep 17 00:00:00 2001 From: savvasha Date: Wed, 26 Aug 2020 08:21:08 +0300 Subject: [PATCH] Forgotten IF statement... --- includes/class-sp-player-list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-sp-player-list.php b/includes/class-sp-player-list.php index 340e67d5..21829300 100644 --- a/includes/class-sp-player-list.php +++ b/includes/class-sp-player-list.php @@ -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 ] ) ):