From fc928636e25aef2346993efdbccf9badc4f7bcdd Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 17 Feb 2005 18:49:16 +0000 Subject: [PATCH] Fix showing of newly created rounds again. --- html/show-tournament.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/show-tournament.pl b/html/show-tournament.pl index 89ba78d..0a59d71 100755 --- a/html/show-tournament.pl +++ b/html/show-tournament.pl @@ -84,7 +84,7 @@ for my $r (0..$#rounds-1) { # If there's only one group left and it's valid for closing, we can also finish # the entire tournament if we'd like -if ($closing_valid && (scalar @{$rounds[$#rounds]->{'parallels'}}) == 1) { +if ($closing_valid && (scalar @rounds > 0 && scalar @{$rounds[$#rounds]->{'parallels'}}) == 1) { $finishing_valid = 1; } -- 2.39.2