Fix: “Undefined variable: team_key”
Avoid warning “Undefined variable: team_key” if team is not selected
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user