summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2015-09-20 20:44:48 +0200
committerYorhel <git@yorhel.nl>2015-09-20 20:44:48 +0200
commit4a8c274379a5693e0d667d9011a9963319d267a2 (patch)
treeadf7416c2a2c3302263bd9c01010766c34754b1a /util
parented86cfd12b0bed7352e2be525b8e63cb4d6d5448 (diff)
Fix handling of empty seiyuu/credits fields
Diffstat (limited to 'util')
-rwxr-xr-xutil/vndb.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/vndb.pl b/util/vndb.pl
index fd70e564..30cdecbe 100755
--- a/util/vndb.pl
+++ b/util/vndb.pl
@@ -55,7 +55,7 @@ TUWF::set(
uname => { regex => qr/^[a-z0-9-]*$/, minlength => 2, maxlength => 15 },
gtin => { func => \&gtintype },
editsum => { maxlength => 5000, minlength => 2 },
- json => { func => \&json_validate, inherit => ['json_fields'], default => [] },
+ json => { func => \&json_validate, inherit => ['json_fields'], default => '[]' },
},
);
TUWF::load_recursive('VNDB::Util', 'VNDB::DB', 'VNDB::Handler');