X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=html%2Fshow-tournament.pl;h=0a59d71c9af14cfa0cd5c81386990730a42381ab;hp=89ba78d8d5bc84882c101f1ab23f6f2f31fceb34;hb=fc928636e25aef2346993efdbccf9badc4f7bcdd;hpb=853b861b60029b5f2bee938f06d5acdee6af8e33 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; }