diff --git a/includes/class-sp-player-list.php b/includes/class-sp-player-list.php index fb3da300..38d50c71 100644 --- a/includes/class-sp-player-list.php +++ b/includes/class-sp-player-list.php @@ -116,8 +116,8 @@ class SP_Player_List extends SP_Secondary_Post { ); endif; + $team_key = 'sp_team'; if ( $team ): - $team_key = 'sp_team'; switch ( $era ): case 'current': $team_key = 'sp_current_team';