From a1b1bf342665fed503f25cbb9dd0fd8c03cedf89 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Thu, 23 Mar 2017 13:23:38 +1100 Subject: [PATCH] Fix league table error in PHP < 5.5 --- includes/sp-core-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/sp-core-functions.php b/includes/sp-core-functions.php index 5a1043b7..8d04476d 100644 --- a/includes/sp-core-functions.php +++ b/includes/sp-core-functions.php @@ -559,7 +559,7 @@ if ( !function_exists( 'sp_get_post_mode_label' ) ) { $mode = 'team'; } - $index = boolval( $singular ); + $index = intval( $singular ); return $labels[ $mode ][ $index ]; }