From f56fdc640bf1e988415998b065b9a07393471cb8 Mon Sep 17 00:00:00 2001 From: ThemeBoy Date: Wed, 4 Dec 2013 04:22:46 +1100 Subject: [PATCH] Fix multiple division player metric duplication issue --- admin/post-types/player.php | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/admin/post-types/player.php b/admin/post-types/player.php index 0230cf4d..0beb4899 100644 --- a/admin/post-types/player.php +++ b/admin/post-types/player.php @@ -52,7 +52,9 @@ function sp_player_stats_meta( $post ) { $div_ids[] = $value->term_id; endforeach; - if ( empty( $team_ids ) || $team_ids == array(0) ): + unset( $team_ids[0] ); + + if ( empty( $team_ids ) ): ?>

-

- 1 ): + ?> +

+