summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2011-05-17 16:31:59 +0200
committerYorhel <git@yorhel.nl>2011-05-17 16:31:59 +0200
commit3b82cff288fb10f6882b4abb650c2f3961409691 (patch)
tree62593df76c6df3f21c44c5d3d0f55ee08efec475
parent18e43c166feaaa8ae6b4183f1dd939cfcc3492f2 (diff)
Bugfix: Don't throw error when adding character to VN without releases
-rw-r--r--ChangeLog1
-rw-r--r--data/script.js1
-rw-r--r--lib/VNDB/Handler/Releases.pm1
3 files changed, 3 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3df2a256..329d1d96 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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}