Fix player loop for displaying minutes in box score
This commit is contained in:
@@ -175,7 +175,7 @@ class SP_Event extends SP_Custom_Post{
|
|||||||
if ( empty( $team_timeline ) ) continue;
|
if ( empty( $team_timeline ) ) continue;
|
||||||
|
|
||||||
foreach ( $players as $player => $player_performance ):
|
foreach ( $players as $player => $player_performance ):
|
||||||
if ( ! $player_id ) continue;
|
if ( ! $player ) continue;
|
||||||
|
|
||||||
// Get player timeline
|
// Get player timeline
|
||||||
$player_timeline = sp_array_value( $team_timeline, $player, array() );
|
$player_timeline = sp_array_value( $team_timeline, $player, array() );
|
||||||
|
|||||||
Reference in New Issue
Block a user