Use primary performance in totals row when teams combined

This commit is contained in:
Brian Miyaji
2015-03-15 15:48:08 +11:00
parent 449495e6f4
commit dde9ce66c8

View File

@@ -112,6 +112,7 @@ $totals = array();
?>
</tbody>
<?php if ( $show_total ): ?>
<?php if ( ! $primary || sizeof( array_intersect_key( $totals, array_flip( (array) $primary ) ) ) ): ?>
<tfoot>
<tr class="' . ( $i % 2 == 0 ? 'odd' : 'even' ) . '">
<?php
@@ -129,6 +130,8 @@ $totals = array();
continue;
if ( $key == 'position' ):
$value = '&mdash;';
elseif ( $primary && $key !== $primary ):
$value = '&nbsp;';
elseif ( array_key_exists( $key, $row ) && $row[ $key ] != '' ):
$value = $row[ $key ];
else:
@@ -150,6 +153,7 @@ $totals = array();
</tr>
</tfoot>
<?php endif; ?>
<?php endif; ?>
</table>
</div>
</div>