Fix notice in team page

This commit is contained in:
Brian Miyaji
2014-09-05 17:44:22 +10:00
parent 700f9300ef
commit b8eb8e4814

View File

@@ -148,7 +148,7 @@ class SP_Team extends SP_Custom_Post {
if ( $minutes === '' ) $minutes = get_option( 'sportspress_event_minutes', 90 );
foreach ( $results as $team_id => $team_result ):
foreach ( $team_result as $key => $value ):
if ( is_array( $team_result ) ): foreach ( $team_result as $key => $value ):
if ( $team_id == $this->ID ):
if ( $key == 'outcome' ):
@@ -202,7 +202,7 @@ class SP_Team extends SP_Custom_Post {
endif;
endif;
endif;
endforeach;
endforeach; endif;
endforeach;
endforeach;