diff options
author | Yorhel <git@yorhel.nl> | 2011-05-17 16:31:59 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2011-05-17 16:31:59 +0200 |
commit | 3b82cff288fb10f6882b4abb650c2f3961409691 (patch) | |
tree | 62593df76c6df3f21c44c5d3d0f55ee08efec475 | |
parent | 18e43c166feaaa8ae6b4183f1dd939cfcc3492f2 (diff) |
Bugfix: Don't throw error when adding character to VN without releases
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | data/script.js | 1 | ||||
-rw-r--r-- | lib/VNDB/Handler/Releases.pm | 1 |
3 files changed, 3 insertions, 0 deletions
@@ -7,6 +7,7 @@ - Bugfix: Make sure the user dropdown boxes work on /v+/chars - Bugfix: dbTraitGet() filtering would not always work correctly - Bugfix: Don't allow duplicate trait names/aliasses within the same group + - Bugfix: Don't throw error when adding character to VN without releases 2.20 - 2011-05-01 - Added support for sponsored links on VN pages diff --git a/data/script.js b/data/script.js index 96023b1c..5d033ec8 100644 --- a/data/script.js +++ b/data/script.js @@ -1919,6 +1919,7 @@ function cvnLoad() { if(v[vid][0]) cvnRelAdd(vid, 0, v[vid][0][0], v[vid][0][1]); } + cvnEmpty(); }, 1); else cvnEmpty(); diff --git a/lib/VNDB/Handler/Releases.pm b/lib/VNDB/Handler/Releases.pm index dd2b278e..f0fdac3f 100644 --- a/lib/VNDB/Handler/Releases.pm +++ b/lib/VNDB/Handler/Releases.pm @@ -612,6 +612,7 @@ sub relxml { xml; tag 'vns'; for (sort { $a->[0]{title} cmp $b->[0]{title} } values %vns) { + next if !$_; my $v = shift @$_; tag 'vn', id => $v->{vid}, title => $v->{title}; tag 'release', id => $_->{id}, lang => join(',', @{$_->{languages}}), $_->{title} |