From: Steinar H. Gunderson Date: Wed, 30 Mar 2005 14:58:11 +0000 (+0000) Subject: Don't give 500 if we have no rounds. X-Git-Url: https://git.sesse.net/?p=ccbs;a=commitdiff_plain;h=81e10a76a0da1e76124e83b5607799ce63eac2e7;hp=629352f0146f1e096bfe61cb604bbf848145f844 Don't give 500 if we have no rounds. --- 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();