Fix calculated performance totals missing from array for custom templates

This commit is contained in:
Brian Miyaji
2018-12-09 11:50:07 +11:00
parent 59fc5b4dfb
commit ea19cc4ec9
2 changed files with 3 additions and 2 deletions

View File

@@ -184,7 +184,7 @@ class SP_Event extends SP_Custom_Post{
if ( ! is_array( $players ) ) continue;
foreach ( $players as $player => $player_performance ):
if ( ! is_array( $player_performance ) || ! $player ) continue;
if ( ! is_array( $player_performance ) ) continue;
// Prepare existing values for equation calculation
$vars = $player_performance;