From 66f8c04dc4067140c6321bfc439c0056fd865adc Mon Sep 17 00:00:00 2001 From: savvasha Date: Sun, 14 Oct 2018 12:08:13 +0300 Subject: [PATCH] Avoid PHP > 7.1.x non-numeric values Warnings PHP Warning: A non-numeric value encountered in /xxxx/public_html/wp-content/plugins/sportspress/includes/class-sp-player.php on line 411 --- includes/class-sp-player.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-sp-player.php b/includes/class-sp-player.php index ef1cc7fd..943379d9 100644 --- a/includes/class-sp-player.php +++ b/includes/class-sp-player.php @@ -408,7 +408,7 @@ class SP_Player extends SP_Custom_Post { // Subtract minutes prior to substitution $substitution_time = sp_array_value( sp_array_value( sp_array_value( sp_array_value( $timeline, $team_id ), $this->ID ), 'sub' ), 0, 0 ); - $played_minutes -= $substitution_time; + $played_minutes -= (int) $substitution_time; else: // Starting lineup with possible substitution