Merge pull request #198 from leewaterman/master

Check for empty precision value #197
This commit is contained in:
Brian Miyaji
2018-01-17 10:21:47 +11:00
committed by GitHub

View File

@@ -561,7 +561,7 @@ class SP_Player_List extends SP_Secondary_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;