Fix player list and league table columns

This commit is contained in:
Brian Miyaji
2014-10-19 20:37:21 +11:00
parent 65da8ac047
commit beaa239548
2 changed files with 2 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ unset( $data[0] );
if ( ! $columns )
$columns = get_post_meta( $id, 'sp_columns', true );
if ( ! is_array( $columns ) )
if ( null !== $columns && ! is_array( $columns ) )
$columns = explode( ',', $columns );
$output .= '<th class="data-rank">' . __( 'Pos', 'sportspress' ) . '</th>';

View File

@@ -35,7 +35,7 @@ if ( isset( $performance ) )
$columns = $performance;
// Explode into array
if ( ! is_array( $columns ) )
if ( null !== $columns && ! is_array( $columns ) )
$columns = explode( ',', $columns );
$list = new SP_Player_List( $id );