diff options
author | Yorhel <git@yorhel.nl> | 2010-11-28 10:06:29 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2010-11-28 10:06:29 +0100 |
commit | ae6657dffb48220f7d6df47658a21ee9177ae99d (patch) | |
tree | fe84d8450e9e5b826b0691e1de0dd0a1b1ca567e /lib/VNDB | |
parent | d82f42629c802d968be247832c2e7cbf17eb16c6 (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.pm | 2 |
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; |