From 81e10a76a0da1e76124e83b5607799ce63eac2e7 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Wed, 30 Mar 2005 14:58:11 +0000 Subject: [PATCH] Don't give 500 if we have no rounds. --- html/show-tournament.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); -- 2.39.2