Merge pull request #299 from kadimi/patch-28

Fix "Skip if zero" not handling float representation (0.0*)
This commit is contained in:
Brian Miyaji
2018-10-04 11:37:23 +10:00
committed by GitHub

View File

@@ -639,7 +639,7 @@ class SP_Player_List extends SP_Secondary_Post {
// Rearrange data array to reflect values
foreach( $merged as $key => $value ):
if ( $crop && ! sp_array_value( $value, $orderby, 0 ) ) {
if ( $crop && ! ( float ) sp_array_value( $value, $orderby, 0 ) ) {
// Crop
unset( $merged[ $key ] );
} else {