diff --git a/admin/hooks/post-thumbnail-html.php b/admin/hooks/post-thumbnail-html.php index e3cb8085..3ed6fdfb 100644 --- a/admin/hooks/post-thumbnail-html.php +++ b/admin/hooks/post-thumbnail-html.php @@ -1,6 +1,6 @@ $result ): if ( sportspress_array_value( $result, 'outcome', '-1' ) != '-1' ): @@ -43,7 +46,11 @@ if ( !function_exists( 'sportspress_event_results' ) ) { endif; endforeach; - if ( ! empty( $table_rows ) ): + if ( empty( $table_rows ) ): + + return false; + + else: $output .= '
' . $venue->name . '
' . $address . '
' . $venue->name . '
' . $address . '