Make sure that is a number (i.e. convert 90+2' to 90') (2)
This commit is contained in:
@@ -456,6 +456,9 @@ class SP_Player extends SP_Custom_Post {
|
|||||||
endforeach;
|
endforeach;
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
|
//Make sure that is a number (i.e. convert 90+2' to 90')
|
||||||
|
$played_minutes = (float)$played_minutes;
|
||||||
|
|
||||||
$totals['eventminutes'] += max( 0, $played_minutes );
|
$totals['eventminutes'] += max( 0, $played_minutes );
|
||||||
|
|
||||||
if ( sp_array_value( $player_performance, 'status' ) == 'lineup' ):
|
if ( sp_array_value( $player_performance, 'status' ) == 'lineup' ):
|
||||||
|
|||||||
Reference in New Issue
Block a user