diff --git a/includes/class-sp-event.php b/includes/class-sp-event.php index 21cbde04..ebc3f1a0 100644 --- a/includes/class-sp-event.php +++ b/includes/class-sp-event.php @@ -188,7 +188,7 @@ class SP_Event extends SP_Custom_Post{ if ( ! is_array( $players ) ) continue; 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 $vars = $player_performance;