diff --git a/admin/hooks/manage-posts-columns.php b/admin/hooks/manage-posts-columns.php index 0157048a..67cbacdd 100644 --- a/admin/hooks/manage-posts-columns.php +++ b/admin/hooks/manage-posts-columns.php @@ -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: - end( $team_results ); - $team_result = prev( $team_results ); + if ( is_array( $team_results ) ): + end( $team_results ); + $team_result = prev( $team_results ); + else: + $team_result = null; + endif; endif; if ( $team_result != null ):