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

@@ -1,4 +1,4 @@
# SportsPress - automated league stats # SportsPress - league management
Welcome to the SportsPress repository on GitHub. Here you can browse the source, look at open issues and keep track of development. Welcome to the SportsPress repository on GitHub. Here you can browse the source, look at open issues and keep track of development.

View File

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