]> git.sesse.net Git - ccbs/commitdiff
Fix showing of newly created rounds again.
authorSteinar H. Gunderson <sesse@samfundet.no>
Thu, 17 Feb 2005 18:49:16 +0000 (18:49 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Thu, 17 Feb 2005 18:49:16 +0000 (18:49 +0000)
html/show-tournament.pl

index 89ba78d8d5bc84882c101f1ab23f6f2f31fceb34..0a59d71c9af14cfa0cd5c81386990730a42381ab 100755 (executable)
@@ -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;
 }