]> git.sesse.net Git - ccbs/commitdiff
Don't give 500 if we have no rounds.
authorSteinar H. Gunderson <sesse@samfundet.no>
Wed, 30 Mar 2005 14:58:11 +0000 (14:58 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Wed, 30 Mar 2005 14:58:11 +0000 (14:58 +0000)
html/show-tournament.pl

index d69dc3219989f35a425eb4df2a4d52100335dbc6..8b23f08d8cae498dc649c887f1aa379dd4b6a221 100755 (executable)
@@ -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();