summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-12-27 22:17:08 +0100
committerDaniel Friesel <derf@finalrewind.org>2022-12-27 22:17:08 +0100
commit3fa9df942fc7371fde28b03c0de6b6e174d78e21 (patch)
tree876303f41c2de8836410fcadd73b85bd8a4fca75 /lib
parent2eed83e02a35ba855cbed1cf3b3cefd0e23d85a1 (diff)
derp #2
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Travelynx/Model/Journeys.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travelynx/Model/Journeys.pm b/lib/Travelynx/Model/Journeys.pm
index f0bf842..edaaf03 100755
--- a/lib/Travelynx/Model/Journeys.pm
+++ b/lib/Travelynx/Model/Journeys.pm
@@ -1344,7 +1344,7 @@ sub compute_review {
if ( $trips[$i] ) {
my ( $from, $to ) = split( qr{[|]}, $trips[$i][0] );
my $found = 0;
- for my $j ( 0 .. $i - 1 ) {
+ for my $j ( 0 .. $#{ $review{top_trips} } ) {
if ( $review{top_trips}[$j][0] eq $to
and $review{top_trips}[$j][2] eq $from )
{