summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2022-09-27 08:28:10 +0200
committerYorhel <git@yorhel.nl>2022-09-28 09:35:55 +0200
commit09a6ada55aa1e35584327d4006a71295578fe967 (patch)
treea4f5619a5066b4eeb5579989a39b67dfd4c93edf /lib
parentdd775389806f79b91f6ef1419a1a91c8616ec621 (diff)
Releases::Page: Fix silly perl warning on revision pages when title is empty
Diffstat (limited to 'lib')
-rw-r--r--lib/VNWeb/Releases/Page.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNWeb/Releases/Page.pm b/lib/VNWeb/Releases/Page.pm
index 5a63ff14..523823e7 100644
--- a/lib/VNWeb/Releases/Page.pm
+++ b/lib/VNWeb/Releases/Page.pm
@@ -42,7 +42,7 @@ sub _rev_ {
[ gtin => 'JAN/EAN/UPC', empty => 0 ],
[ catalog => 'Catalog number' ],
[ titles => 'Languages', txt => sub {
- '['.$_->{lang}.($_->{mtl} ? ' machine translation' : '').'] '.$_->{title}.($_->{latin} ? " / $_->{latin}" : '')
+ '['.$_->{lang}.($_->{mtl} ? ' machine translation' : '').'] '.($_->{title}//'').(length $_->{latin} ? " / $_->{latin}" : '')
}],
[ olang => 'Main title', fmt => \%LANGUAGE ],
[ released => 'Release date', fmt => sub { rdate_ $_ } ],