diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-01-20 20:06:04 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-01-20 20:06:04 (GMT) |
commit | d14e1c29570092fb55699534b5401bb710121f4e (patch) | |
tree | 5a91df3f83b3e6e403317dd90dd26cdf2afbb67e /rh-bin | |
parent | 7e4ce0b7d6c07c2400deb312ae03a9f4ddf61678 (diff) |
fixed another unwanted closure...
Diffstat (limited to 'rh-bin')
-rwxr-xr-x | rh-bin/musicgrid.cgi | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rh-bin/musicgrid.cgi b/rh-bin/musicgrid.cgi index 6699ef8..440f95b 100755 --- a/rh-bin/musicgrid.cgi +++ b/rh-bin/musicgrid.cgi @@ -38,11 +38,11 @@ my $cmd = $q->request_method(); sub set_clock { - my ($ctx) = @_; + my ($ctx, $query) = @_; - my $dow = $q->param('DOW'); - my $hour = $q->param('HOUR'); - my $shortname = $q->param('NAME'); + my $dow = $query->param('DOW'); + my $hour = $query->param('HOUR'); + my $shortname = $query->param('NAME'); if(!defined $dow) { return 400 ,"mandatory field DOW is missing"; @@ -86,7 +86,7 @@ if(!defined $username) { } } elsif($cmd eq "POST") { - ($responsecode, $errorstring) = set_clock($ctx); + ($responsecode, $errorstring) = set_clock($ctx, $q); } else { $responsecode = 405; |