Fix player list and league table columns
This commit is contained in:
@@ -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>';
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user