Fix team list error
This commit is contained in:
@@ -43,8 +43,12 @@ function sportspress_manage_posts_custom_column( $column, $post_id ) {
|
||||
if ( $main_result ):
|
||||
$team_result = sportspress_array_value( $team_results, $main_result, null );
|
||||
else:
|
||||
if ( is_array( $team_results ) ):
|
||||
end( $team_results );
|
||||
$team_result = prev( $team_results );
|
||||
else:
|
||||
$team_result = null;
|
||||
endif;
|
||||
endif;
|
||||
|
||||
if ( $team_result != null ):
|
||||
|
||||
Reference in New Issue
Block a user