summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/Misc.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2011-01-02 18:49:00 +0100
committerYorhel <git@yorhel.nl>2011-01-02 18:49:00 +0100
commiteda527b4f5c73447b1100055b7e6ac3fa10225ab (patch)
treecf30f32ed1e212755e8a2e42ef56c8f4011addf2 /lib/VNDB/Handler/Misc.pm
parent6d3c3ec45ad157597d2830323575e6d060449f6c (diff)
Bugfix: Correctly randomize screenshots on homepage with filters
Diffstat (limited to 'lib/VNDB/Handler/Misc.pm')
-rw-r--r--lib/VNDB/Handler/Misc.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Misc.pm b/lib/VNDB/Handler/Misc.pm
index 90a457aa..5df5ab10 100644
--- a/lib/VNDB/Handler/Misc.pm
+++ b/lib/VNDB/Handler/Misc.pm
@@ -48,7 +48,7 @@ sub homepage {
# with filters applied it's signifcantly slower, so special-code the situations with and without filters
my @vns;
if($self->authPref('filter_vn')) {
- my $r = $self->filFetchDB(vn => undef, undef, {hasshot => 1, results => 4, order => 'rand'});
+ my $r = $self->filFetchDB(vn => undef, undef, {hasshot => 1, results => 4, sort => 'rand'});
@vns = map $_->{id}, @$r;
}
my $scr = $self->dbScreenshotRandom(@vns);