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:
$value = $placeholder;
endif;
if ( ! array_key_exists( $key, $totals ) ):
$totals[ $key ] = $placeholder;
endif;
if ( 'number' === $format ):
$value = floatval( $value );
$totals[ $key ] += $value;
endif;
endif;
if ( ! array_key_exists( $key, $totals ) ):
$totals[ $key ] = $placeholder;
endif;
if ( 'number' === $format ) {
$value = floatval( $value );
$totals[ $key ] += $value;
}
if ( $mode == 'values' ):
echo '<td class="data-' . $key . '">' . $value . '</td>';