summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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 );
}