From f736c9fb6f29d1f722e09d5833c96a725934fe2f Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Thu, 22 Sep 2016 13:33:47 +1000 Subject: [PATCH] Prevent box score output when empty --- templates/event-performance.php | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/templates/event-performance.php b/templates/event-performance.php index 35c64a5b..79f2cbd2 100644 --- a/templates/event-performance.php +++ b/templates/event-performance.php @@ -29,9 +29,7 @@ if ( ! isset( $id ) ) $teams = get_post_meta( $id, 'sp_team', false ); if ( is_array( $teams ) ): - ?> -
- performance(); @@ -275,7 +273,16 @@ if ( is_array( $teams ) ): } do_action( 'sportspress_event_performance' ); - ?> -
- +
+ +
+