diff --git a/includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php b/includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php index f42e81a8..81cda616 100644 --- a/includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php +++ b/includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php @@ -36,11 +36,6 @@ class SP_Meta_Box_Player_Statistics { self::table( $post->ID, $league->term_id, $columns, $data, $placeholders, $merged, $seasons_teams, $i == 0 ); $i ++; endforeach; - ?> -
- data( 0, true ); - self::table( $post->ID, 0, $columns, $data, $placeholders, $merged, $seasons_teams ); } else { // Determine order of sections if ( 1 == $sections ) { @@ -60,6 +55,7 @@ class SP_Meta_Box_Player_Statistics { $columns = get_posts( $args ); + $s = 0; foreach ( $section_order as $section_id => $section_label ) { // Loop through statistics for each league $i = 0; @@ -68,14 +64,10 @@ class SP_Meta_Box_Player_Statistics {
name; ?> —
data( $league->term_id, true, $section_id ); - self::table( $post->ID, $league->term_id, $columns, $data, $placeholders, $merged, $seasons_teams, $i == 0 ); + self::table( $post->ID, $league->term_id, $columns, $data, $placeholders, $merged, $seasons_teams, $i == 0 && $s == 0 ); $i ++; endforeach; - ?> -—
- data( 0, true, $section_id ); - self::table( $post->ID, 0, $columns, $data, $placeholders, $merged, $seasons_teams ); + $s ++; } } } @@ -126,24 +118,17 @@ class SP_Meta_Box_Player_Statistics { ?>| ' . $label . ' | '; -endforeach; - -$output .= '
|---|
| ' . sp_array_value( $row, $key, '—' ) . ' | '; - endforeach; - - $output .= '