From a1188b512e85b9eee7a1eb3f8c430e37548888f0 Mon Sep 17 00:00:00 2001 From: savvasha Date: Fri, 8 Oct 2021 17:29:15 +0300 Subject: [PATCH] FIX2: PHP 8.0: Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero --- includes/class-sp-player-list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-sp-player-list.php b/includes/class-sp-player-list.php index 319f1cc1..33887a5e 100644 --- a/includes/class-sp-player-list.php +++ b/includes/class-sp-player-list.php @@ -942,7 +942,7 @@ class SP_Player_List extends SP_Secondary_Post { // Flip value if descending order if ( $priority['order'] == 'DESC' ) $output = 0 - $output; - return ( $output > 0 ); + return ( $output > 0 ? 1 : -1 ); endif;