Make league table template accept empty array for columns

This commit is contained in:
Brian Miyaji
2014-10-24 22:38:16 +11:00
parent add3e39c24
commit dc72f001c8

View File

@@ -44,7 +44,7 @@ $labels = $data[0];
// Remove the first row to leave us with the actual data
unset( $data[0] );
if ( ! $columns )
if ( $columns === null )
$columns = get_post_meta( $id, 'sp_columns', true );
if ( null !== $columns && ! is_array( $columns ) )