X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=html%2Fdo-edit-scores.pl;h=4b5d4828034597a8f2fe487ec1beb755a928d2ce;hp=7d3d4352a7307504dbee14909403ceb84cee977b;hb=50e6991fc69f8bace6489c40dbbe6b5ba9df8572;hpb=2af69ca729a57a65bc0afdded897ccdaa04bf315 diff --git a/html/do-edit-scores.pl b/html/do-edit-scores.pl index 7d3d435..4b5d482 100755 --- a/html/do-edit-scores.pl +++ b/html/do-edit-scores.pl @@ -9,8 +9,18 @@ my $cgi = new CGI; my $tournament = $cgi->param('tournament'); +# Loop through all parameters until we find the update button +my $player; +for my $param ($cgi->param()) { + if ($param =~ /^update(\d+)$/) { + $player = $1; + last; + } +} + +die "Form-submit uten å trykke på noen update-knapp?" unless (defined($player)); + $dbh->disconnect; -ccbs::print_header(); ccbs::print_see_other('show-tournament.pl?id=' . $tournament);