Fix countdown error when teams are not selected
This commit is contained in:
@@ -69,7 +69,7 @@ if ( $link_events ) $title = '<a href="' . get_post_permalink( $post->ID, false,
|
|||||||
<h3 class="event-name">
|
<h3 class="event-name">
|
||||||
<?php
|
<?php
|
||||||
if ( $show_logos ) {
|
if ( $show_logos ) {
|
||||||
$teams = array_unique( get_post_meta( $post->ID, 'sp_team' ) );
|
$teams = array_unique( (array) get_post_meta( $post->ID, 'sp_team' ) );
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
|
||||||
if ( is_array( $teams ) ) {
|
if ( is_array( $teams ) ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user