Fix league table placeholders

This commit is contained in:
Brian Miyaji
2016-03-30 21:42:10 +11:00
parent e04a212f1e
commit 9e618cdc46

View File

@@ -449,7 +449,7 @@ class SP_League_Table extends SP_Custom_Post{
if ( sp_array_value( sp_array_value( $placeholders, $team_id, array() ), $stat->post_name, '' ) == '' ):
if ( $stat->equation == null ):
$placeholder += sp_array_value( sp_array_value( $adjustments, $team_id, array() ), $stat->post_name, null );
$placeholder = sp_array_value( sp_array_value( $adjustments, $team_id, array() ), $stat->post_name, null );
if ( $placeholder == null ):
$placeholder = '-';
endif;