]> git.sesse.net Git - ccbs/commitdiff
Cache revision
authorSteinar H. Gunderson <sesse@samfundet.no>
Wed, 16 Feb 2005 20:38:03 +0000 (20:38 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Wed, 16 Feb 2005 20:38:03 +0000 (20:38 +0000)
19:45-21:45

html/show-tournament.pl

index 3a407f80e99dafa1848bcc03c697f261179c7940..89ba78d8d5bc84882c101f1ab23f6f2f31fceb34 100755 (executable)
@@ -99,6 +99,14 @@ if ($num_rounds == 0) {
        $num_qualified = $ref->{'numqualifying'};
 }
 
+# And last: If there is a ranking list, the tournament is closed and we really can't
+# do anything more
+if ($num_rankings > 0) {
+       $closing_valid = 0;
+       $finishing_valid = 0;
+       $rounds[$#rounds]->{'locked'} = 1;
+}
+
 ccbs::print_header();
 ccbs::process_template('show-tournament.tmpl', $tournament->{'tournamentname'}, {
        tournament => $tournament,