Fix error when no value found
This commit is contained in:
@@ -375,7 +375,7 @@ class SP_League_Table extends SP_Custom_Post{
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
foreach ( $stats as $stat ):
|
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 ):
|
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 );
|
||||||
|
|||||||
Reference in New Issue
Block a user