From c83c75958fd670e74c8bd350071119e56977b69c Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Sun, 16 Mar 2014 18:38:26 +1100 Subject: [PATCH] Check if limit exists --- admin/templates/league-table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/templates/league-table.php b/admin/templates/league-table.php index 04c1f050..37eff08c 100644 --- a/admin/templates/league-table.php +++ b/admin/templates/league-table.php @@ -45,7 +45,7 @@ if ( !function_exists( 'sportspress_league_table' ) ) { foreach( $data as $team_id => $row ): - if ( $i >= $r['number'] ) continue; + if ( isset( $limit ) && $i >= $limit ) continue; $name = sportspress_array_value( $row, 'name', null ); if ( ! $name ) continue;