diff options
author | Yorhel <git@yorhel.nl> | 2014-12-02 11:21:10 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2014-12-02 11:21:10 +0100 |
commit | 42e5a4793fc02ef54805ab5706830bbb2e1bd086 (patch) | |
tree | 61672279da0365c1908ec922cbe170c6d840789b /lib/VNDB/Handler/VNEdit.pm | |
parent | 473b0007bddb1bcd9df1d95a00029b69fa7060e2 (diff) |
Handler::VNEdit: Fix 500 when editing VN without screenshots
Broken in 44b11883da3a7e6f1138984ceeba162e0f90dc35
Diffstat (limited to 'lib/VNDB/Handler/VNEdit.pm')
-rw-r--r-- | lib/VNDB/Handler/VNEdit.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/VNEdit.pm b/lib/VNDB/Handler/VNEdit.pm index b5c84c3a..dd2a883e 100644 --- a/lib/VNDB/Handler/VNEdit.pm +++ b/lib/VNDB/Handler/VNEdit.pm @@ -301,7 +301,7 @@ sub _form { [ hidden => short => 'screensizes', value => do { # Current screenshot resolutions, for use by Javascript my @scr = map /^(\d+),/?$1:(), split / /, $frm->{screenshots}; - my %scr = map +($_->{id}, "$_->{width},$_->{height}"), @{$self->dbScreenshotGet(\@scr)}; + my %scr = map +($_->{id}, "$_->{width},$_->{height}"), @scr ? @{$self->dbScreenshotGet(\@scr)} : (); join ' ', map $scr{$_}, @scr; }], [ static => nolabel => 1, content => sub { |