Fix error when no value found

This commit is contained in:
Brian Miyaji
2015-09-17 12:24:51 +10:00
parent eb1e5ff3cd
commit 1134b76944

View File

@@ -375,7 +375,7 @@ class SP_League_Table extends SP_Custom_Post{
continue;
foreach ( $stats as $stat ):
if ( sp_array_value( $placeholders[ $team_id ], $stat->post_name, '' ) == '' ):
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 );