summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-11-27 21:09:49 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-11-27 21:09:49 +0100
commit119f0a6b7d92db63c4dbab3e65dda34285c007e0 (patch)
tree859e6e1f229e5c15ebfdc7b4ba5d65751b669ddb /lib/Travelynx/Controller
parent424897fcc377886d1dab2d2d1a2142a0d8c78faa (diff)
Do not show cancelled journeys without substitute in passengerrights list1.10.6
Diffstat (limited to 'lib/Travelynx/Controller')
-rw-r--r--lib/Travelynx/Controller/Passengerrights.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Travelynx/Controller/Passengerrights.pm b/lib/Travelynx/Controller/Passengerrights.pm
index ba299b1..7d9a00b 100644
--- a/lib/Travelynx/Controller/Passengerrights.pm
+++ b/lib/Travelynx/Controller/Passengerrights.pm
@@ -127,9 +127,9 @@ sub list_candidates {
$journey->{cancelled} = 1;
$self->mark_substitute_connection($journey);
- if ( not $journey->{has_substitute}
- or $journey->{to_substitute}->{rt_arr_ts} - $journey->{sched_arr_ts}
- >= 3600 )
+ if ( $journey->{has_substitute}
+ and $journey->{to_substitute}->{rt_arr_ts}
+ - $journey->{sched_arr_ts} >= 3600 )
{
push( @journeys, $journey );
}