Check empty precision value #197

This commit is contained in:
Lee Waterman
2017-03-08 21:56:04 -08:00
parent 7de8436862
commit 71b7f2fdf9

View File

@@ -550,7 +550,7 @@ class SP_Player_List extends SP_Custom_Post {
// Apply adjustment // Apply adjustment
if ( $adjustment != 0 ): if ( $adjustment != 0 ):
$placeholder += $adjustment; $placeholder += $adjustment;
$placeholder = number_format( $placeholder, $stat->precision, '.', '' ); $placeholder = number_format( $placeholder, $stat->precision ? $stat->precision : 0, '.', '' );
endif; endif;
endif; endif;