Fix warning in event when no players

This commit is contained in:
Brian Miyaji
2014-04-03 11:45:14 +11:00
parent 75e7bc3d55
commit fe994e1dfd
2 changed files with 1 additions and 3 deletions

View File

@@ -90,8 +90,6 @@ foreach( $teams as $key => $team_id ):
<<?php echo ( $has_players ? 'tfoot' : 'tbody' ); ?>>
<tr class="' . ( $i % 2 == 0 ? 'odd' : 'even' ) . '">
<?php
$number = get_post_meta( $player_id, 'sp_number', true );
if ( $has_players ):
echo '<td class="data-number">&nbsp;</td>';
echo '<td class="data-name">' . SP()->text->string('Total', 'event') . '</td>';