Fix: “Undefined variable: team_key”

Avoid warning “Undefined variable: team_key” if team is not selected
This commit is contained in:
savvasha
2018-05-16 19:05:35 +03:00
committed by GitHub
parent 354731e67a
commit ddfbb698f1

View File

@@ -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';