Fix player positions displaying as zero

This commit is contained in:
Brian Miyaji
2017-01-16 11:56:13 +11:00
parent 79fd89fa8a
commit 765f10bf6e

View File

@@ -133,15 +133,16 @@ if ( ! isset( $subs ) ) $subs = array();
else: else:
$value = $placeholder; $value = $placeholder;
endif; endif;
endif;
if ( ! array_key_exists( $key, $totals ) ): if ( ! array_key_exists( $key, $totals ) ):
$totals[ $key ] = $placeholder; $totals[ $key ] = $placeholder;
endif; endif;
if ( 'number' === $format ) { if ( 'number' === $format ):
$value = floatval( $value ); $value = floatval( $value );
$totals[ $key ] += $value; $totals[ $key ] += $value;
} endif;
endif;
if ( $mode == 'values' ): if ( $mode == 'values' ):
echo '<td class="data-' . $key . '">' . $value . '</td>'; echo '<td class="data-' . $key . '">' . $value . '</td>';