diff --git a/templates/event-performance-table.php b/templates/event-performance-table.php index b99d33ad..3eefa7db 100644 --- a/templates/event-performance-table.php +++ b/templates/event-performance-table.php @@ -172,7 +172,7 @@ if ( ! isset( $subs ) ) $subs = array(); $performance_id = sp_array_value( $performance_ids, $key, null ); $icons = ''; if ( $performance_id && has_post_thumbnail( $performance_id ) ): - $icons = str_repeat( get_the_post_thumbnail( $performance_id, 'sportspress-fit-mini', array( 'title' => sp_get_singular_name( $performance_id ) ) ) . ' ', $value ); + $icons = str_repeat( get_the_post_thumbnail( $performance_id, 'sportspress-fit-mini', array( 'title' => sp_get_singular_name( $performance_id ) ) ) . ' ', intval($value) ); endif; $content .= apply_filters( 'sportspress_event_performance_icons', $icons, $performance_id, $value ); endif;