Check if placeholder is numeric
This commit is contained in:
@@ -560,7 +560,9 @@ class SP_Player_List extends SP_Custom_Post {
|
|||||||
$placeholder = sp_array_value( $placeholders[ $player_id ], $stat->post_name, '-' );
|
$placeholder = sp_array_value( $placeholders[ $player_id ], $stat->post_name, '-' );
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
|
if ( is_numeric( $placeholder ) ):
|
||||||
$placeholders[ $player_id ][ $stat->post_name ] = number_format( $placeholder, $stat->precision, '.', '' );
|
$placeholders[ $player_id ][ $stat->post_name ] = number_format( $placeholder, $stat->precision, '.', '' );
|
||||||
|
endif;
|
||||||
endforeach;
|
endforeach;
|
||||||
|
|
||||||
endforeach;
|
endforeach;
|
||||||
|
|||||||
Reference in New Issue
Block a user