From 36bfd8bf4ac830be814392e61c6b73b1f1c9e221 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Sat, 30 Jul 2016 02:25:24 +1000 Subject: [PATCH] Fix countdown error when teams are not selected --- templates/countdown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/countdown.php b/templates/countdown.php index c561dc71..0bc84889 100644 --- a/templates/countdown.php +++ b/templates/countdown.php @@ -69,7 +69,7 @@ if ( $link_events ) $title = ' ID, 'sp_team' ) ); + $teams = array_unique( (array) get_post_meta( $post->ID, 'sp_team' ) ); $i = 0; if ( is_array( $teams ) ) {