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;