From 83b3eafc94fb6b65107eb8693df12b245361dd37 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Sat, 4 Jan 2014 22:30:21 +1100 Subject: [PATCH] Fix no events issue by referencing variable --- admin/post-types/team.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/post-types/team.php b/admin/post-types/team.php index 7dbd2fa4..453a92a1 100644 --- a/admin/post-types/team.php +++ b/admin/post-types/team.php @@ -161,7 +161,7 @@ function sp_team_columns_meta( $post ) { // Generate array of placeholder values for each league $placeholders[ $div_id ] = array(); foreach ( $equations as $key => $value ): - if ( sizeof( $events ) > 0 ): + if ( $totals['eventsplayed'] > 0 ): $placeholders[ $div_id ][ $key ] = sp_solve( $value, $totals ); else: $placeholders[ $div_id ][ $key ] = 0;