Fix league table error in PHP < 5.5

This commit is contained in:
Brian Miyaji
2017-03-23 13:23:38 +11:00
parent c9c575c763
commit a1b1bf3426

View File

@@ -559,7 +559,7 @@ if ( !function_exists( 'sp_get_post_mode_label' ) ) {
$mode = 'team';
}
$index = boolval( $singular );
$index = intval( $singular );
return $labels[ $mode ][ $index ];
}