Fix player list precision number format error

This commit is contained in:
Brian Miyaji
2016-11-27 17:00:01 +11:00
parent 736105e418
commit 7bc729dfd1

View File

@@ -466,7 +466,7 @@ class SP_Player_List extends SP_Custom_Post {
endif; endif;
// Add precision to object // Add precision to object
$stat->precision = sp_array_value( sp_array_value( $meta, 'sp_precision', array() ), 0, 0 ); $stat->precision = sp_array_value( sp_array_value( $meta, 'sp_precision', array() ), 0, 0 ) + 0;
// Add column name to columns // Add column name to columns
$columns[ $stat->post_name ] = $stat->post_title; $columns[ $stat->post_name ] = $stat->post_title;