From ac265b48045816a4a1c17039f5a2ae4a924613cf Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Wed, 14 Sep 2016 19:22:31 +1000 Subject: [PATCH] Fix player loop for displaying minutes in box score --- includes/class-sp-event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-sp-event.php b/includes/class-sp-event.php index 162b8af6..584c8126 100644 --- a/includes/class-sp-event.php +++ b/includes/class-sp-event.php @@ -175,7 +175,7 @@ class SP_Event extends SP_Custom_Post{ if ( empty( $team_timeline ) ) continue; foreach ( $players as $player => $player_performance ): - if ( ! $player_id ) continue; + if ( ! $player ) continue; // Get player timeline $player_timeline = sp_array_value( $team_timeline, $player, array() );