From 6dfa5063ff8f99891126f38109b1751cccb475cd Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Sun, 8 Jan 2017 11:02:42 +1100 Subject: [PATCH] Should always be array --- templates/event-logos.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/event-logos.php b/templates/event-logos.php index 23e771e8..0b309447 100644 --- a/templates/event-logos.php +++ b/templates/event-logos.php @@ -13,7 +13,7 @@ if ( get_option( 'sportspress_event_show_logos', 'yes' ) === 'no' ) return; if ( ! isset( $id ) ) $id = get_the_ID(); -$teams = get_post_meta( $id, 'sp_team' ); +$teams = (array) get_post_meta( $id, 'sp_team' ); $teams = array_filter( $teams, 'sp_filter_positive' ); if ( ! $teams ) return;