summaryrefslogtreecommitdiff
path: root/lib/VNDB
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2010-11-28 10:06:29 +0100
committerYorhel <git@yorhel.nl>2010-11-28 10:06:29 +0100
commitae6657dffb48220f7d6df47658a21ee9177ae99d (patch)
treefe84d8450e9e5b826b0691e1de0dd0a1b1ca567e /lib/VNDB
parentd82f42629c802d968be247832c2e7cbf17eb16c6 (diff)
Handler::VNBrowse: Fixed bug with assigning to $fil->{lang}
This caused the search to break when no language filters were set.
Diffstat (limited to 'lib/VNDB')
-rw-r--r--lib/VNDB/Handler/VNBrowse.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/VNBrowse.pm b/lib/VNDB/Handler/VNBrowse.pm
index 7b35dc26..8e30da99 100644
--- a/lib/VNDB/Handler/VNBrowse.pm
+++ b/lib/VNDB/Handler/VNBrowse.pm
@@ -35,7 +35,7 @@ sub list {
# for URL compatibilty with older versions (ugly hack to get English strings)
my @lang;
$f->{q} =~ s/\s*$VNDB::L10N::en::Lexicon{"_lang_$_"}\s*//&&push @lang, $_ for (@{$self->{languages}});
- $fil->{lang} = $fil->{lang} ? [ ref($fil->{lang}) ? @{$fil->{lang}} : $fil->{lang}, @lang ] : \@lang;
+ $fil->{lang} = $fil->{lang} ? [ ref($fil->{lang}) ? @{$fil->{lang}} : $fil->{lang}, @lang ] : \@lang if @lang;
}
$f->{fil} = fil_serialize $fil;