Fix minutes not displaying in box score

This commit is contained in:
Brian Miyaji
2017-01-16 19:36:30 +11:00
parent 24988844d6
commit 760ec46ebc
2 changed files with 5 additions and 5 deletions

View File

@@ -100,9 +100,9 @@ if ( ! isset( $class ) ) $class = null;
$totals[ $key ] = $placeholder; $totals[ $key ] = $placeholder;
endif; endif;
if ( 'text' !== $format ) { if ( 'number' === $format ) {
$value = floatval( $value ); $add = floatval( $value );
$totals[ $key ] += $value; $totals[ $key ] += $add;
} }
if ( $mode == 'values' ): if ( $mode == 'values' ):

View File

@@ -143,8 +143,8 @@ if ( ! isset( $subs ) ) $subs = array();
endif; endif;
if ( 'number' === $format ): if ( 'number' === $format ):
$value = floatval( $value ); $add = floatval( $value );
$totals[ $key ] += $value; $totals[ $key ] += $add;
endif; endif;
endif; endif;