From 301142b1d9177442578b59be5ed3ed723ab7e3e9 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Thu, 9 Jan 2014 12:38:40 +1100 Subject: [PATCH] Fix issue where current post was being displayed as a team in admin --- admin/hooks/manage-posts-custom-column.php | 1 + 1 file changed, 1 insertion(+) diff --git a/admin/hooks/manage-posts-custom-column.php b/admin/hooks/manage-posts-custom-column.php index 9b620ed9..fb10c975 100644 --- a/admin/hooks/manage-posts-custom-column.php +++ b/admin/hooks/manage-posts-custom-column.php @@ -42,6 +42,7 @@ function sportspress_manage_posts_custom_column( $column, $post_id ) { endforeach; else: foreach( $teams as $team_id ): + if ( ! $team_id ) continue; $team = get_post( $team_id ); echo $team->post_title . '
'; endforeach;