From: Marius Gavrilescu Date: Fri, 6 Feb 2015 19:16:33 +0000 (+0200) Subject: Fix gruntmaster-problem edit X-Git-Tag: 5999.000_014~76 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=91f4171dc9f9f2134073c0a079bc2c1ac415642d;p=gruntmaster-data.git Fix gruntmaster-problem edit --- diff --git a/gruntmaster-problem b/gruntmaster-problem index 7e979cd..7fe2f76 100755 --- a/gruntmaster-problem +++ b/gruntmaster-problem @@ -112,7 +112,7 @@ sub cmd_edit{ close $fh; my $editor = $ENV{EDITOR} // 'editor'; system $editor, $file; - $db->problem($id)->update({$col => read_file $file}); + $db->problem($id)->update({$col => scalar read_file $file}) or die "$!"; } sub cmd_list{