Keep value as key for frontend labels

This commit is contained in:
Brian Miyaji
2020-08-06 13:19:47 +10:00
parent 37917f9397
commit ea48d511c0

View File

@@ -96,7 +96,7 @@ class SP_Player extends SP_Custom_Post {
$metric = sp_array_value( $metrics, $key, null ); $metric = sp_array_value( $metrics, $key, null );
if ( $metric == null ) if ( $metric == null )
continue; continue;
$data[ $key ] = sp_array_value( $metrics, $key, ' ' ); $data[ $value ] = sp_array_value( $metrics, $key, ' ' );
endforeach; endforeach;
return $data; return $data;
} }