From dc72f001c8a9fbed364bf1be15f2bd11a5d9a3db Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Fri, 24 Oct 2014 22:38:16 +1100 Subject: [PATCH] Make league table template accept empty array for columns --- templates/league-table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/league-table.php b/templates/league-table.php index 7387d0c8..ce1555a1 100644 --- a/templates/league-table.php +++ b/templates/league-table.php @@ -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 ) )