X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=html%2Fshow-tournament.pl;h=8b23f08d8cae498dc649c887f1aa379dd4b6a221;hp=d69dc3219989f35a425eb4df2a4d52100335dbc6;hb=81e10a76a0da1e76124e83b5607799ce63eac2e7;hpb=629352f0146f1e096bfe61cb604bbf848145f844 diff --git a/html/show-tournament.pl b/html/show-tournament.pl index d69dc32..8b23f08 100755 --- a/html/show-tournament.pl +++ b/html/show-tournament.pl @@ -157,7 +157,9 @@ if ($num_rounds == 0) { if ($num_rankings > 0) { $closing_valid = 0; $finishing_valid = 0; - $rounds[$#rounds]->{'locked'} = 1; + if ($#rounds > -1) { + $rounds[$#rounds]->{'locked'} = 1; + } } ccbs::print_header();