FIX PHP8: PHP Fatal error: Uncaught TypeError: Unsupported operand types

This commit is contained in:
savvasha
2021-11-21 15:51:52 +02:00
parent db901c202d
commit 97a6ba6d69

View File

@@ -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 ) :