diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-12-27 22:17:08 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-12-27 22:17:08 +0100 |
commit | 3fa9df942fc7371fde28b03c0de6b6e174d78e21 (patch) | |
tree | 876303f41c2de8836410fcadd73b85bd8a4fca75 | |
parent | 2eed83e02a35ba855cbed1cf3b3cefd0e23d85a1 (diff) |
derp #2
-rwxr-xr-x | lib/Travelynx/Model/Journeys.pm | 2 |
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 ) { |