FIX PHP8: PHP Fatal error: Uncaught TypeError: Unsupported operand types
This commit is contained in:
@@ -772,7 +772,7 @@ endif;
|
||||
$placeholder = sp_solve( $stat->equation, $placeholders[ $player_id ], $stat->precision );
|
||||
|
||||
// Adjustment
|
||||
$adjustment = sp_array_value( $player_adjustments, $stat->post_name, 0 );
|
||||
$adjustment = (float) sp_array_value( $player_adjustments, $stat->post_name, 0 );
|
||||
|
||||
// Apply adjustment
|
||||
if ( $adjustment != 0 ) :
|
||||
|
||||
Reference in New Issue
Block a user