Fix empty league tables when no columns

This commit is contained in:
Brian Miyaji
2017-01-19 16:30:58 +11:00
parent 089e41b743
commit eaf6f050ad

View File

@@ -560,6 +560,8 @@ class SP_League_Table extends SP_Custom_Post{
if ( ! $team_id )
continue;
$placeholders[ $team_id ] = array();
foreach ( $stats as $stat ):
if ( sp_array_value( sp_array_value( $placeholders, $team_id, array() ), $stat->post_name, '' ) == '' ):