diff --git a/includes/class-sp-player-list.php b/includes/class-sp-player-list.php index 70b5fee9..e152146e 100644 --- a/includes/class-sp-player-list.php +++ b/includes/class-sp-player-list.php @@ -532,6 +532,9 @@ class SP_Player_List extends SP_Secondary_Post { endforeach; endif; + //Make sure that is a number (i.e. convert 90+2' to 90') + $played_minutes = (float)$played_minutes; + $totals[ $player_id ]['eventminutes'] += max( 0, $played_minutes ); if ( sp_array_value( $player_performance, 'status' ) == 'lineup' ):