Fix calculated totals resetting to zero
This commit is contained in:
@@ -188,7 +188,7 @@ class SP_Event extends SP_Custom_Post{
|
|||||||
if ( ! is_array( $players ) ) continue;
|
if ( ! is_array( $players ) ) continue;
|
||||||
|
|
||||||
foreach ( $players as $player => $player_performance ):
|
foreach ( $players as $player => $player_performance ):
|
||||||
if ( ! is_array( $player_performance ) ) continue;
|
if ( ! is_array( $player_performance ) || ! $player ) continue;
|
||||||
|
|
||||||
// Prepare existing values for equation calculation
|
// Prepare existing values for equation calculation
|
||||||
$vars = $player_performance;
|
$vars = $player_performance;
|
||||||
|
|||||||
Reference in New Issue
Block a user