From 27ee9666e8cd4fe3e1061221ed6d92e5bfabe70b Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Mon, 5 Oct 2015 12:26:59 +1100 Subject: [PATCH] Initialize arrays for performance table filter --- templates/event-performance-table.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/event-performance-table.php b/templates/event-performance-table.php index 2dd81236..00cf80a6 100644 --- a/templates/event-performance-table.php +++ b/templates/event-performance-table.php @@ -15,6 +15,10 @@ $totals = array(); // Set null if ( ! isset( $position ) ) $position = null; if ( ! isset( $class ) ) $class = null; + +// Initialize arrays +if ( ! isset( $lineups ) ) $lineups = array(); +if ( ! isset( $subs ) ) $subs = array(); ?>
@@ -83,9 +87,6 @@ if ( ! isset( $class ) ) $class = null; if ( $link_posts ): $permalink = get_post_permalink( $player_id ); $name = '' . $name . ''; - if ( isset( $row['status'] ) && $row['status'] == 'sub' ): - $name = '(' . $name . ')'; - endif; endif; if ( array_key_exists( $player_id, $lineup_sub_relation ) ):