diff --git a/functions.php b/functions.php index 1a902c92..ab41991c 100644 --- a/functions.php +++ b/functions.php @@ -2073,6 +2073,10 @@ if ( !function_exists( 'sportspress_get_player_metrics_data' ) ) { foreach( $metric_labels as $key => $value ): + $metric = sportspress_array_value( $metrics, $key, null ); + if ( $metric == null ) + continue; + $data[ $value ] = sportspress_array_value( $metrics, $key, ' ' ); endforeach;