Fix placeholder for player list when no events played

This commit is contained in:
Brian Miyaji
2017-01-13 08:07:20 +11:00
parent 12b2226817
commit 3779392248

View File

@@ -526,7 +526,7 @@ class SP_Player_List extends SP_Custom_Post {
endif;
endif;
if ( $placeholder ):
if ( $placeholder !== '' ):
$placeholders[ $player_id ][ $stat->post_name ] = sp_array_value( $placeholders[ $player_id ], $stat->post_name, 0 ) + $placeholder;
endif;
endforeach;