diff options
author | Yorhel <git@yorhel.nl> | 2015-09-20 20:44:48 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2015-09-20 20:44:48 +0200 |
commit | 4a8c274379a5693e0d667d9011a9963319d267a2 (patch) | |
tree | adf7416c2a2c3302263bd9c01010766c34754b1a /util | |
parent | ed86cfd12b0bed7352e2be525b8e63cb4d6d5448 (diff) |
Fix handling of empty seiyuu/credits fields
Diffstat (limited to 'util')
-rwxr-xr-x | util/vndb.pl | 2 |
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 => \>intype }, 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'); |