summaryrefslogtreecommitdiff
path: root/lib/VNDB
diff options
context:
space:
mode:
authorflan <flan@flande.re>2017-01-20 16:40:53 +0100
committerYorhel <git@yorhel.nl>2017-01-21 09:36:24 +0100
commit5847daf777439187c49a70ccdf2dd0610f0ddcda (patch)
treeab57f9a0604b5951842ae906b9b61ed6a43d3bb3 /lib/VNDB
parente868c1f2d95b7701cb08b08f9d01e9a5b74079e8 (diff)
Don't omit metadata with a value of '0'
Diffstat (limited to 'lib/VNDB')
-rw-r--r--lib/VNDB/Util/LayoutHTML.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Util/LayoutHTML.pm b/lib/VNDB/Util/LayoutHTML.pm
index a970546c..e2aca0fd 100644
--- a/lib/VNDB/Util/LayoutHTML.pm
+++ b/lib/VNDB/Util/LayoutHTML.pm
@@ -41,7 +41,7 @@ sub htmlHeader { # %options->{ title, noindex, search, feeds, svg, metadata }
}
for my $k (keys %{$o{metadata}}) {
- next unless $o{metadata}{$k};
+ next if !$o{metadata}{$k} and $o{metadata}{$k} ne '0';
$o{metadata}{$k} =~ s/\R/ /g;
meta property => "$k", content => $o{metadata}->{$k}, undef;