Fix event results display

This commit is contained in:
Brian Miyaji
2014-02-21 10:26:43 +11:00
parent 8ebb6b59d3
commit 562e69d1f5
4 changed files with 16 additions and 7 deletions

View File

@@ -16,6 +16,9 @@ if ( !function_exists( 'sportspress_event_results' ) ) {
$i = 0;
if ( empty( array_filter( $results, 'array_filter' ) ) )
return false;
foreach( $results as $team_id => $result ):
if ( sportspress_array_value( $result, 'outcome', '-1' ) != '-1' ):
@@ -43,7 +46,11 @@ if ( !function_exists( 'sportspress_event_results' ) ) {
endif;
endforeach;
if ( ! empty( $table_rows ) ):
if ( empty( $table_rows ) ):
return false;
else:
$output .= '<h3>' . __( 'Results', 'sportspress' ) . '</h3>';