From: Marius Gavrilescu Date: Tue, 3 Feb 2015 16:37:35 +0000 (+0200) Subject: Fix crash in gruntmaster-problem X-Git-Tag: 5999.000_014~92 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=866602c798c5679f0fbf4a526f7fcfc09db9c0c7;p=gruntmaster-data.git Fix crash in gruntmaster-problem --- diff --git a/gruntmaster-problem b/gruntmaster-problem index d9dbb73..819b7ef 100755 --- a/gruntmaster-problem +++ b/gruntmaster-problem @@ -93,7 +93,7 @@ sub cmd_add{ sub cmd_set{ my $file; GetOptions ( 'file!' => \$file ); - my ($id, %values) = @_; + my ($id, %values) = @ARGV; %values = map { $_ => scalar read_file $values{$_} } keys %values if $file; $db->problem($id)->update(\%values); }