From ddfbb698f110177f6963749fa68377f1eca63489 Mon Sep 17 00:00:00 2001 From: savvasha Date: Wed, 16 May 2018 19:05:35 +0300 Subject: [PATCH] =?UTF-8?q?Fix:=20=E2=80=9CUndefined=20variable:=20team=5F?= =?UTF-8?q?key=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Avoid warning “Undefined variable: team_key” if team is not selected --- 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 b66ba107..5e96bbc3 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';