Fix event logos error when teams are not selected

This commit is contained in:
Brian Miyaji
2015-01-28 13:56:22 +11:00
parent fe62aa41b3
commit f4603a725b
2 changed files with 12 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ if ( ! isset( $id ) )
$id = get_the_ID();
$teams = get_post_meta( $id, 'sp_team' );
$teams = array_filter( $teams );
$teams = array_filter( $teams, 'sp_filter_positive' );
if ( $teams ):
$team_logos = array();
foreach ( $teams as $team ):